Shape conventions
The equations of simgeometry.shapes, declared on the code that implements them and checked by the tests.
level_set
functionsourceLevel-set values of the (ndim, n) points: negative inside, positive outside.
- inversion
- bound
- Assumes
- an inverted shape is the complement of its geometry:
contains_pointsis negated and the level set flips sign - equality in the bound where
level_set_exactis true: the Euclidean signed distance - shapes known only by their membership test (
has_level_setFalse) raiseNotImplementedError
- an inverted shape is the complement of its geometry:
outlines
functionsourceReturn the boundary loops of the shape as (2, n) host arrays.
- orientation
- pieces
- graded
- Order
- 2
- Assumes
- loops are without a repeated vertex; each edge of length is split into equal pieces
- curved shapes place every vertex on the curve; a circle gets 100 vertices without
max_spacing - the order is that of the area enclosed by the outline of a circle in