Expand description
Validated, deterministic planar boolean overlay and offset.
Structs§
- ArcArrangement
- The plane cut by several simple arc rings.
- ArcOverlay
Evidence - Evidence that the arc path did what it claims.
- ArcOverlay
Result - The result of an arc-aware boolean.
- ArcPolygon
- An arc-aware region: one outer boundary and its holes.
- ArcRing
- A closed boundary whose edges may be arcs.
- ArcVertex
- One boundary vertex and the bulge of the edge leaving it.
- Arrangement
Edge - One piece of the subdivision: part of one or more input edges, running between two vertices with no other ring’s boundary crossing it.
- Arrangement
Edge Use - One use of a piece in a region boundary.
- Arrangement
Region - A region of the subdivision: an outer boundary and its holes.
- Circle
Evidence - Which points determine the circle and how exact the output is.
- Edge
Source - Where a piece of the subdivision came from.
- Enclosing
Circle - A circle by its centre and radius.
- Minimum
Circle - The circle and its evidence.
- Minimum
Rectangle - The rectangle and its evidence.
- Morphology
Bound - How a disc morphology’s result relates to the exact one.
- Offset
Evidence - What an offset actually did.
- Offset
Result - Result of an offset.
- Oriented
Rectangle - A rectangle by its centre, two unit axes and the half extents along them.
- Overlay
Evidence - Overlay
Input - Overlay
Result - Polygon
- Rectangle
Evidence - What the construction did and how exact its output is.
- Region
- A validated planar region: a normalised set of polygons with holes.
- Region
Evidence - What an operation did to produce a region.
- Ring
Enums§
- Bound
Side - Which side of the exact disc morphology a region lies on.
- CapStyle
- How an open stroke terminates.
- Circle
Error - Why no circle was built.
- Fill
Rule - Join
Style - How the outline turns a corner.
- Minkowski
Error - Why a Minkowski operation was refused.
- Overlay
Error - Overlay
Operation - Rectangle
Error - Why no rectangle was built.
- Visibility
Error - Why no visibility polygon was built.
Functions§
- arc_
edge_ radius - Arc radius implied by an edge, or
Nonefor a straight edge. - arc_
overlay - Boolean of two arc-capable regions.
- arc_
ring_ area - Signed area enclosed by an arc ring.
- minimum_
area_ rectangle - The minimum-area rectangle enclosing
points. - minimum_
enclosing_ circle - The minimum circle enclosing
points. - offset_
polygons - Offset closed polygons by
distance. - overlay
- Performs a neutral planar overlay. Output ordering is deterministic: polygons sort by outer-ring lexicographic start, rings are canonicalized CCW/CW.
- polygon_
area - Net area of a polygon: outer boundary minus its holes.
- reverse_
arc_ ring - Reverse a ring’s orientation, preserving its geometry.
- ring_
area - Absolute area of a ring.
- stroke_
polyline - Sweep an open polyline into a closed region of the given width.
- total_
area - Total net area across a set of polygons.
- union_
soup - Union a set of individually-valid rings that may overlap each other.
- validate_
arc_ ring - Validate an arc ring against the same contract as
crate::Ring, plus the arc-specific degeneracies.