by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 4.8, Creation date: 2020-01-03, Last change: 2025-09-14
[CPL,T,r]=CPLofSGcutT([SG,T,pp,rh])
SG: | Solid Geometry | |
T: | Cutting frame; Z-Achsis spearates | |
pp: | point relative to T(!) that define the selected contours of the crossing CPL for example [0 0] | |
rh: | radius and height of pins, used only for result plot and as educationb |
CPL: | Crossing Contour, The pins are ignored | |
T: | HT Matrix | |
r: | maximal radius of contour relative to T |
SG=SGboolh('-',SGbox([30,20,10]),SGsphere(12,'','','',8,4));
SGfigure;SGplotalpha(SG,'',0.5);view(-30,30);
T=TofR(rot(3,-.1,-2),[-13 -10 4]);
CPLofSGcutT(SG,T,'',.5)
load ADAM_Amono.mat; SG=ADAM_Amono; T=TofR([pi/2,pi,0],[75 79 87])*TofR([pi/2 0 0]);
CPLofSGcutT(SG,T) % Cuts also the hand wrists
CPLofSGcutT(SG,T,[0 0]) % Cuts only the Torso