CPLofSGslice3

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CVLz/Slices
Introduced first in SolidGeometry 3.2, Creation date: 2016-12-26, Last change: 2025-09-14

returns CPL and CVL for different sliced heights and directions

Description

3 dimensional slicing procedure.
SG=CPLofSGslice3(SG,z) return one slice in height z
CPLofSGslice3(SG,[0 1 0]) return one slice in at plane y=1

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: CPLofSGhull , SGslicer , CPLofSGslice , CPLofSGslice2 , CPLofSGsliceauto , CVLzofSGsliceauto

Example Illustration

 missing image of CPLofSGslice3(SG,z)

Syntax

[CPL,CVL]=CPLofSGslice3(SG,z)

Input Parameter

SG: Solid Geoemtry
z: either a z value or a cell list of values

Output Parameter

CPL: Closed polygon list (n x 2) separated with NaN NaN
CVL: Closed polygon vertex list (n x 2) separated with NaN NaN NaN

Examples


CPLofSGslice3(SGsample(7),[4,6])
CPLofSGslice3(SGbox([30,20,10]),[0 0 0.01; 0 0.1 0; 0.1 0 0])
CPLofSGslice3(SGsample(7),[0 0 4; 0.1 4 0.1])




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