by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 3.9, Creation date: 2017-06-10, Last change: 2025-09-14
See Also: selectNaN
, lengthNaN
, replaceNaN
, separateNaN
, uniqueNaN
, unsortNaN
VLcell=cellofNaN(CVL)
CVL: | CVL/CPL separated by NaN |
VLcell: | Cell list of separated PL/CVL |
cellofNaN(CPLsample(26))
cellofNaN(CPLsample(27))
This function, CPLcellofNaN, is designed to convert a CVL (Closed Vertex List) or CPL (Closed Polygon List) that is separated by NaN values into a cell list. The function is part of the SolidGeometry library and was introduced in version 3.9.
separateNaN function. This function counts the number of NaN-separated segments in the input list.VLcell, is initialized with a size equal to the number of segments determined in the previous step.n (the number of segments).i, the function separateNaN(CVL, i) is called to extract the i-th segment from the input CVL.PLofCPL function, which likely converts the segment into a specific format or structure.i-th position of the VLcell array.VLcell array, now containing all processed segments, is returned as the output of the function.This function is useful for handling lists that are separated by NaN values, allowing for easy manipulation and processing of each individual segment.
Algorithm explaination created using ChatGPT on 2025-08-18 22:40. (Please note: No guarantee for the correctness of this explanation)