CPLofPLcrossCPL

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

cuts a line by crossings using a CPL

Description

works with CPLs
(Ugly Implementation but requrired for checkfourbar1Poseattachpermutation

See Also: crossC2P , isInteriorofCPL

Example Illustration

 missing image of CPLofPLcrossCPL(CPL,PL,LL)

Syntax

[NPL,FFL]=CPLofPLcrossCPL(CPL,PL,[LL])

Input Parameter

CPL: Closed Polygon line
PL: Point List
LL: Optional Length or angle list related to the points of PL

Output Parameter

NPL: Point list separated by the crossing
FFL: Interpolated Value List

Examples


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




Copyright 2021-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21