CPLofSGslice

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CVLz/Slices
Introduced first in SolidGeometry 2.7, Creation date: 2015-09-29, Last change: 2025-09-14

returns the CPL of a sliced SG

Description

MODIFICATION REQUIRED SINVE 2019a CPL=CPLofPL(CPLsimplify(CPL));

The slicer functions differ a little bit
CPLofSGslice - Single Slice
CPLofSGslice2 - Slices in a list of z values
CPLofSGslice3 - Slicing in 3 dimensions at the same time, several slices (returns also CVL)
CVLofSGslices - Slices in z (return CVL)
SGslicer - Basic function behind all of the above

See Also: SGslicer , CPLofSGslice2 , CPLofSGslice3

Example Illustration

 missing image of CPLofSGslice(SG,z)

Syntax

[CPL,warn]=CPLofSGslice(SG,[z])

Input Parameter

SG: Solid Geoemtry
z: z value for slicing

Output Parameter

CPL: Closed Polygon List
warn: result of SGslicer

Examples


CPLofSGslice(SGsample(7),3)
CPLofSGslice(SGsample(39),-inf)
CPLofSGslice(SGsample(39),+inf)




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