CPLofSGcutT

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

separates a solid similar to SGcutT but inserts connection points

Description

The first function for this purpose was written by Simon Schiele.

See Also: SGcutT , SGcutTinsertpins , CPLfillonCPLcontour , PLonCPLcontour

Example Illustration

 missing image of CPLofSGcutT(SG,T,pp,rh)

Syntax

[CPL,T,r]=CPLofSGcutT([SG,T,pp,rh])

Input Parameter

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

Output Parameter

CPL: Crossing Contour, The pins are ignored
T: HT Matrix
r: maximal radius of contour relative to T

Examples


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




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