Skip to main content

Module corner2d

Module corner2d 

Source
Expand description

2D fillets and chamfers: rounding and beveling a wire’s corner.

The sketch-plane cousins of the edge blends. A corner where two straight edges of a wire meet is replaced by a tangent arc (the fillet) or a straight cut at set distances (the chamfer); the two edges are trimmed back on their own curves, and the wire is rebuilt with the connector in the corner’s place. The tangent construction for corners with curved sides (a line meeting an arc, two arcs) is the 2D tangency problem proper (docs/PARITY.md, fillet.corners-2d) rather than approximated here.

Functions§

chamfer_corner_2d
Cut a corner of a wire, trimming first back along the earlier edge and second along the later, joined by a straight segment.
fillet_corner_2d
Round a corner of a wire with an arc tangent to both of its edges.