Skip to main content Module geometry Copy item path Source pub use crate::section::Section ;CompoundGeometry A collection of independent regions, e.g. two parallel rectangles,
an angle bolted to a plate, or a built-up girder. Geometry A single connected region: an outer boundary plus optional holes,
optionally followed by a list of transforms. Point Polygon Axis Axis selector for mirroring. BoolOp Boolean operation selector. BooleanError Errors from polygon / section boolean operations. CompoundError Errors from compound-geometry topology validation. JoinStyle PolygonError Transform A rigid or affine transformation applied to a Geometry ’s vertices. BoundaryExtrema Trait for section boundaries that can report their extreme fiber distances. check_boolean_bounds Cheap per-op area-bounds reconciliation. polygon_boolean Convenience wrapper over polygon_boolean_checked that infallibly returns
the result, panicking if the area-bounds validation fails. Prefer the
checked variant when the error must be recoverable rather than aborting the
process. polygon_boolean_checked Checked boolean operation that verifies the result before returning it. polygon_boolean_sampled_checked Explicitly request the point-in/polygon sampling validation in addition to
the area-bounds reconciliation. section_difference Boolean difference between two full sections (outer boundary + holes). section_intersection Boolean intersection between two full sections (outer boundary + holes). section_union Boolean union between two full sections (outer boundary + holes). segments_interact Check if two segments have any topological interaction (crossing, touching, or collinear overlap).
Returns true for ProperCross, CollinearOverlap, and Touch. union_voids Merge a collection of void polygons (already clipped to a piece) into a
minimal set of pairwise-disjoint simple polygons.