by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 5.1, Creation date: 2021-12-22, Last change: 2025-09-15
[NPL,FFL]=CPLofPLcrossCPL(CPL,PL,[LL])
CPL: | Closed Polygon line | |
PL: | Point List | |
LL: | Optional Length or angle list related to the points of PL |
NPL: | Point list separated by the crossing | |
FFL: | Interpolated Value List |
CPLofPLcrossCPL(PLcircle(10,8),[-15 -15;+15 -15]) % No crossing
CPLofPLcrossCPL(PLcircle(10,8),[-15 -15;+15 +15]) % Crossing
CPLofPLcrossCPL(CPLsample(13),[-15 -15;+15 +15]) % three crossings
CPLofPLcrossCPL(PLcircle([10,4,3],8),[-20 20;-5 -5; -4 -4; 5 5; 20 20]) % Crossing
CPLofPLcrossCPL(PLcircle([10,4,3],8),[-20 20;-5 -5; -4 -4; 5 5; 20 20],[0 9 0 0 9]) % interpolation
CPLofPLcrossCPL(PLcircle([10,4,3],8),[-20 20;-5 -5; -4 -4],[0 9 0]) % End in empty