Trim/C,to,L
Trim Circle to Line
Trims a circle to a line boundary. Start/End selector specifies which endpoint.
What It Does
The Trim/C,to,L operator trims a circle to a line boundary. The Start/End selector specifies which endpoint of the circle to trims.
Trims vs Extend: Trim shortens an entity to reach a boundary. Extend lengthens an entity to a boundary.
Syntax
Trim/C,to,L, CIRCLE, to, LINE, Start|End
Quick Input
CIRCLE: [reference]
LINE: [boundary reference]
End: ● Start ○ End
Direction Selector
| Selector | Meaning |
|---|---|
Start | Trim the start endpoint of the circle to the line |
End | Trim the end endpoint of the circle to the line |
| Selector | Keeps |
|---|---|
CCW | Arc segment swept counter-clockwise from intersection |
CW | Arc segment swept clockwise from intersection |
Worked Examples
C0=centre(50,50) r=30, L0=horizontal Y=50
Trim/C0, to, L0, CCW
→ Upper semicircle (20,50)→(80,50) sweeping upward
Trim/C0, to, L0, CW
→ Lower semicircle (20,50)→(80,50) sweeping downward
Analytic Rule
Find intersection of circle and line.
Move the selected endpoint to the intersection.
The circle is shortened to meet the boundary.
Result: Exact analytic trim.
FAQ
What if the circle does not intersect the line?
XyzPilot returns an error. The circle must intersect the line.
What is the difference between Trim and Extend?
Trim shortens an entity to a boundary. Extend lengthens an entity to reach a boundary. Both use the same Start/End selector.