SGpunchTCPLthrough
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 4.9, Creation date: 2020-01-09, Last change: 2025-09-14
punching: shoots a contour through a solid
Description
This functions works only for correct boolean merged solids! No open boundaries et al.
This function fails if tehre are hollow cavities inside of a solid
This function was developed 6.Nov.2018 as SGcutTCPL first
See Also: BBofSGcutT
, SGcut
, SGcut2
, SGcutBB
, SGpunchTCPLfirstwall
Example Illustration
Syntax
[C,Ts,succ]=SGpunchTCPLthrough([SG,To,CPL])
Input Parameter
SG: | | Solid Geometry |
To: | | Optional T frame |
CPL: | | Closed Polygon Line |
Output Parameter
C: | | Resulting Solid |
Ts: | | HT MAtrix for cutting in z direction |
succ: | | flag for success |
Examples
SGpunchTCPLthrough(SGsample(25),TofP([-4 -6 0]),[PLcircle(1,8);nan nan;PLcircle(0.5)])
SGpunchTCPLthrough(SGsample(25),'',[PLcircle(1,8);nan nan;PLcircle(0.5)])
SGpunchTCPLthrough(SGboxsphere,'',[PLcircle(1,8);nan nan;PLcircle(0.5)])
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