Booleans and transforms
The equations of simgeometry.operations, declared on the code that implements them and checked by the tests.
BooleanShape
classsourceA snapshot of a union, intersection, or difference of two shapes.
- union
- intersection
- difference
- Assumes
- membership combines the operands' masks; a level set needs one on both operands
- the combined level set is a bound on the distance, not the exact distance (
level_set_exactis False)
PolarRepeat
classsourcecount copies of a 3D shape rotated about an axis, evaluated as one.
- fold
- level set
- Assumes
- copies of the source rotated about the axis by multiples of ; the point's angle about the axis from the reference direction (the unit vector normal to the axis closest to x)
- the source lies within its sector (copies do not overlap), so membership is the source's at the point rotated into the first sector
- the level set is the smallest over the point's sector and its two neighbours: a bound on the distance where the nearest copy is among them (copies away from the axis)
Section
classsourceA membership-preserving section, including holes and disconnected pieces.
- plane
- level set
- Assumes
- the orthonormal in-plane basis (columns), the plane origin; membership is the source's at
- the source's level set on the plane only bounds the in-plane distance (
level_set_exactis False)
TransformedShape
classsourceIndependent affine image of a source, mapping p to matrix @ p + offset.
- map
- level set
- bound
- normal
- Assumes
- invertible and finite; its smallest singular value
- the level set stays a bound on the distance; it is exact only for an exact source under a similarity (rigid motion or uniform scaling)