Expand description
Offsetting a closed planar wire: the sketch-plane operation everything in this crate stands on.
Each edge is offset on its own (a segment to the parallel segment, an arc to the concentric arc) and the corners decide the rest. Where the corner turns away from the offset side the pieces separate, and the gap is closed by the chosen join: an arc about the old corner, or the extension of both pieces to their meeting. Where it turns toward the offset side the pieces overlap, and both are trimmed to their intersection. The result is a new wire with history: every input edge modified into its offset, every join generated from the corner it rounds.
The honest limits, refused by name rather than mishandled: edges that are neither straight nor circular, offsets that consume an edge whole, arcs whose concentric offset would have no radius left, and results that self-intersect; the global arrangement that trims a collapsed offset into its valid loops is recorded in docs/PARITY.md (offset.wire-offset).
Enums§
- Join
- How a gap at a corner is closed.
Functions§
- offset_
wire - Offset a closed planar wire by
offset: positive moves outward, away from the enclosed region, negative moves inward.