CVLofVL

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 4.0, Creation date: 2017-07-18, Last change: 2025-09-14

converts a CVL in a CVL whose contours are closed



See Also: CPLofPL

Example Illustration

 missing image of CVLofVL(CVL)

Syntax

CVL=CVLofVL(CVL)

Input Parameter

CVL: CVL with potential open contours

Output Parameter

CVL: CVL with ensured closed contours

Examples


CVLofVL(VLsample(14))




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

Algorithm (Workflow)

This function, CVLofVL, is designed to ensure that all contours within a Closed Vertex List (CVL) are closed. It is part of the SolidGeometry library and was introduced in version 4.0.

Input Parameters

Output Results

Algorithm Steps

  1. Store the original CVL in CVLo for later comparison.
  2. Determine the number of separate contours in the CVL using the separateNaN function, which identifies segments separated by NaN values.
  3. Iterate over each contour (from 1 to n):
  4. If no output argument is specified (nargout==0), visualize the results:
Algorithm explaination created using ChatGPT on 2025-08-18 22:45. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21