CVL=CVLzseparate(CVLz,[i])
CVLz : | Slices CVL | |
i : | simple index in zz list |
CVL : | just the contour with the nth z value |
CVL=CVLofSGslices(SGsample(5),10);
CVLzseparate(CVLzofSGsliceauto(SGsample(5)),2)
This function, CVLzseparate
, is designed to extract a specific contour from a set of closed polygon lists (CVL) that are associated with a particular z-value. It is part of the SolidGeometry library and was introduced in version 4.9.
i
.i
from the variable arguments using the helper function getfuncparams
.CVLz
using the function CVLseparatez
, which returns a list of z-values.i
is empty, the function returns the number of elements in the z-value list zz
.i
is provided, the function extracts the contour corresponding to the z-value at position i
in the list zz
.nargout==0
), the function generates a plot using SGfigure
and CVLplots
to visualize the original and extracted contours.An example of how to use the function is provided:
CVL=CVLzofSGslices(SGsample(5),10); CVLzseparate(CVLzofSGsliceauto(SGsample(5)),2)
This example demonstrates how to obtain a specific contour from a set of slices generated from a sample solid geometry.
Algorithm explaination created using ChatGPT on 2025-08-19 08:20. (Please note: No guarantee for the correctness of this explanation)