Trim/Arc/Between/P0,P1
Trim Arc Between Two Points
Keeps only the arc segment between two points P0 and P1. The CW/CCW selector specifies which arc segment to keep.
What It Does
The Trim/Arc/Between/P0,P1 operator trims an arc to keep only the segment between two specified points. Both points must lie on the arc within its sweep angles. The CW/CCW selector specifies which of the two arc segments to keep.
Syntax
Trim/Arc, A0, Between, P0, P1, CW|CCW
Quick Input
A: [arc reference]
P: [first boundary point on the arc]
P2: [second boundary point on the arc]
Dir: ○ CW ● CCW
Direction Selector
| Selector | Keeps |
|---|---|
CCW | The arc segment swept counter-clockwise from P0 to P1 |
CW | The arc segment swept clockwise from P0 to P1 |
Worked Examples
Setup:
A0 = Arc: centre(0,0), r=50, start=0, end=180 CCW
P0 = (35.355, 35.355) [at 45 degrees]
P1 = (-35.355, 35.355) [at 135 degrees]
Trim/Arc, A0, Between, P0, P1, CCW
→ A0 trimmed: from (35.355,35.355) to (-35.355,35.355)
Sweep: 90 degrees CCW [upper portion]
Trim/Arc, A0, Between, P0, P1, CW
→ A0 trimmed: the remaining arc segments
[lower portions — 45 deg + 45 deg]
Analytic Rule
Both points P0 and P1 must lie on arc A within its sweep.
CCW: keep the segment swept CCW from P0 to P1
CW: keep the segment swept CW from P0 to P1
Result: Exact analytic arc trim.
FAQ
What if the points are not on the arc?
XyzPilot returns an error. Both P0 and P1 must lie exactly on the arc within its sweep angles.
How is this different from Trim/Circle/Between/P,P?
Trim/Circle/Between/P,P works on full circles. Trim/Arc/Between/P,P works on arcs — the points must be within the arc sweep angles.