-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
Description
Would be nice to add some more prism tests. There are some tests that are easier to implement if you use a fixed object (or a set of fixed objects), as a supplement to the random "fuzz testing" in the test-prism.c code.
To start with, we could use some canonical non-convex test object (including some non right-angles), e.g. a C-like shape. Then you could precompute some things like the volume, the intersection of a box with the object, the normal vector at a few points, the result of point-in-prism at a few points (near boundaries and corners), and test against these.