Curve Segment Dispatcher
Explodes curves into Lines and Arcs, extracting Radii, Centers, and visual Dimensions.
Overview
Explodes curves into Lines and Arcs, extracting Radii, Centers, and visual Dimensions.
Inputs (4)
- curves (Curve): Curves to process
- offset (Number): Dimension offset
- dim_toggle (Boolean): Show dimensions
- num_dec (Integer): Number of decimals
Outputs (5)
- lines (Curve): Linear segments
- arcs (Curve): Arc segments
- radii (Number): Arc radii
- centers (Point): Arc centers
- dims (Generic): Visual dimensions
Method, assumptions and simplifications
The same notes appear in the component's Info output.
Method
- Splits each curve into segments (DuplicateSegments), keeping the branch structure.
- Linear segments go to lines. Other segments that are arcs within 0.001 go to arcs, with their radius and centre.
- With dim_toggle, each arc gets a radial leader line of length offset (default 10) outwards from the arc midpoint and a text dot R radius, rounded to num_dec decimals.
Assumptions
- Curves are made of lines and arcs; offset is in model units.
Simplifications and limits
- Segments that are neither lines nor arcs are not output; a warning gives their count.