SGcut

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Boolean
Introduced first in SolidGeometry 2.1, Creation date: 2015-01-08, Last change: 2025-09-14

Cuts a solid geometry into 2 parts at a defined z-plane

Description

returns two solid solids (VL,FL). It is a good programming example how to use SGslicer.
Without output parameter is shows the cutted parts using VLFLfigure
Since REl 4.9 it allows parameters as z similar to SGcutend


See Also: SGcut , SGcut2 , SGcutBB , BBofSGcutT , SGcutend

Example Illustration

 missing image of SGcut(SG,z)

Syntax

[SGA,SGB]=SGcut(SG,[z])

Input Parameter

SG: Solid Geometry (VL,FL)
z: z value for slicing or interval [z1 z2] or character such as 'x', 'y', 'z'

Output Parameter

SGA: Solid below cutting plane (and above z2) (grey)
SGB: Solid above cutting plane (and in between z2) (magenta)

Examples


SGcut (SGsample(7),+10);
SGcut(SGsample(4));
SGcut(SGsample(25));
SGcut(SGsample(25),'x+');
SGcut(SGsample(25),'x-');




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