by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 5.4, Creation date: 2023-12-20, Last change: 2025-09-15
CPLA=CPLselectspatial(CPL,[rel,"object"])
CPL: | Closed Polygon List | |
rel: | spatial or other relation | |
"object": | if used objects instead of CPLs are used in general |
CPLA: | Selected CPL |
CPLbox('','A'); A=ans; CPLbox('','B'); B=ans; CPLbox('','C'); C=ans; CPLbox('','D'); D=ans;
CPLbox([10 3],'space'); S=ans; CPLbox([70 5],'table'); T=ans;
CPLarrange({A,B,C,S},T,'ontop',1,'add'); CPL=ans; SGfigure; CPSplot(CPL);
CPLselectspatial(CPL,'top','left',2)
CPLselectspatial(CPL,'object','top','left',2)
CPLselectspatial(CPL,'equalobj',C)
CPLselectspatial(CPL,'object','overobj',T,'equalobj',A); % Gibt es ein Object A oberhalb von Table
CPLselectspatial(CPL,'object','overobj',T,'left',2);
CPLselectspatial(CPL,'overobj',T,'left',2);
CPLselectspatial(CPL,'overobj',T,'left',2:200,'top',1);
CPLselectspatial(CPL,'object','overobj',T,'equalobj',A); XXX=ans; CPLN=CPLsubtract(CPL,XXX); SGfigure; CPSplot(CPLN)
YYY=CPLtransrelCPL(A,CPLselectspatial(CPL,'object','equalobj',B),'center','ontop',1); CPLunion(CPLN,YYY); CPLM=ans;
SG=SGofCPLextrude(CPLM,10,'y'); SGfigure(SG);