by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Kinematics and Frames
Introduced first in SolidGeometry 5.1, Creation date: 2022-01-30, Last change: 2025-09-15
CPLN=CPLsubtractTL([CPL1,TL1,CPL2,TL2,buf,"debug"])
CPL1: | Contour to subtract from | |
TL1: | path of contour 1 must have the same length of TL2 or 3x3 | |
CPL2: | Contour to be subtracted | |
TL2: | path of contour 2 must have the same length of TL1 or 3x3 | |
buf: | buffer to increase CPL2 before start | |
"debug": | if used the function shows results stepwise |
CPLN: | New contour |
Posesample(10); PS=ans;
fourBarposesyntheses(Posesample(10),[2 3 4],[10 1 1]); PS=ans;
fourBarposeCPLmotion(PS,1); [PL0,TL0,wcr,TA1,TB1,TA0,TB0]=fourBarposeCPLmotion(PS,1);
CPLunionTL(PLcircle(5),TA1,PLsquare(5),TL0,2); CPLN=ans;
CPLsubtractTL(PLcircle(5),TA1,PLsquare(2),TL0,0.1); CPLN=ans;