CPLsubtractTL

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

subtract a moving contour from another moving contour

Description

helpful for any piano mover problem

See Also: CPLsweepTL , CPLanimateTL , CPLunionTL

Example Illustration

 missing image of CPLsubtractTL(CPL1,TL1,CPL2,TL2,buf,

Syntax

CPLN=CPLsubtractTL([CPL1,TL1,CPL2,TL2,buf,"debug"])

Input Parameter

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

Output Parameter

CPLN: New contour

Examples


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;




Copyright 2022-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