Expand description
Shared utility functions for the check crate.
Constants§
- CLOSED_
CURVE_ SAMPLES - Number of sample points for closed-curve edges.
- OPEN_
CURVE_ SAMPLES - Number of samples for an OPEN curved edge (arc or marched conic piece) in wire polygons; sized for sub-degree angular steps on typical arcs.
Functions§
- expand_
aabb_ for_ surface - Expand an AABB to account for surface curvature that may extend beyond the wire vertices.
- face_
aabb - Compute the axis-aligned bounding box of a face.
- face_
polygon - Build a polygon from the outer wire of a face by sampling vertex positions and closed-edge curves.
- point_
in_ polygon_ 3d - Test whether a 3D point lies inside a 3D polygon by projecting onto the dominant axis plane (the plane most aligned with the polygon normal).
- polygon_
normal - Compute the normal of a polygon via Newell’s method.
- sample_
edge_ curve - Sample a closed-edge curve at
nevenly spaced parameter values. - wire_
polygon - Build a polygon from a wire by sampling vertex positions and closed-edge curves.