CVLzofSGslices

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CVLz/Slices
Introduced first in SolidGeometry 3.8, Creation date: 2017-05-15, Last change: 2025-09-14

returns a stack of slices as CVL (CPL including z) of a SG

Description

RENAMED IN SG-Lib 5.0 from "CVLofSGslices" to "CVLzofSGslices"
This function is useful for creating 3D printing strategies over several slices. It also helps to reconstruct solids. 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)
-CVLzofSGslices - Slices in z (return CVL)
-CVLzofSGsliceauto - Slices automatically in z (return CVL)
-SGslicer - Basic function behind all of the above

See Also: CPLofSGslice3 , CVLzaddauxpoints , CVLzofSGsliceauto , CVLzplotasCPS , CVLzplotui , CVLzremovearea , CVLzreplace , CVLzseparate , CVLzsweep

Example Illustration

 missing image of CVLzofSGslices(SG,n,l,thre)

Syntax

CVL=CVLzofSGslices(SG,[n,l,thre])

Input Parameter

SG: Solid Geometry
n: number of slices; default is 10; if n is real, n is the slice distance
l: optional limit for contour order; default is ''
thre: reduction at top and bottom; default is 1e-2

Output Parameter

CVL: CVLz of the slices including the relevant c coordinate

Examples


CVLzofSGslices(SGsample(23),50)
CVLzofSGslices(SGsample(25),50); view(0,0) % All contours
CVLzofSGslices(SGsample(25),50,0); view(0,0) % Most outward contour
CVLzofSGslices(SGsample(25),50,1); view(0,0) % Outward plus 1st inner
CVLzofSGslices(SGsample(25),50,2); view(0,0) % Outward plus 1st and 2nd inner
CVLzofSGslices(SGsample(25),1.001,1); view(0,0) % slicing distance is 1 mm




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