Syntax
[VL,CIL,EL]=VLofCVL(CVL)
Input Parameter
CVL : | | CLosed Polygon list CPL/CVL |
Output Parameter
VL : | | Vertex list without doubles and NaNs |
CIL : | | Contour index list related to VL |
EL : | | Edge list |
Examples
[VL,CIL]=VLofCVL(CPLsample(26))
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, VLofCVL
, is designed to process a closed polygon list (CPL/CVL) and generate a vertex list, contour index list, and optionally an edge list. It is part of the SolidGeometry library.
Input Parameters
- CVL: A closed polygon list (CPL/CVL) that represents the input data structure.
Output Results
- VL: A vertex list that excludes duplicate entries and NaN values.
- CIL: A contour index list that corresponds to the vertex list.
- EL: An edge list, which is generated if more than two output arguments are requested.
Algorithm Steps
- The function calls
CILofCVL
with the input CVL
to obtain the vertex list VL
and contour index list CIL
.
- The size of
CIL
is determined using size(CIL,1)
, which gives the number of contours.
- If the number of output arguments requested is greater than two, the function calls
ELofCIL
to generate the edge list EL
.
- If no output arguments are specified, the function creates a 3D plot using
SGfigure
and view
to visualize the contours. It iterates over each contour and plots it using CVLplot
with a color determined by colofn
.
Example Usage
An example call to the function is [VL,CIL]=VLofCVL(CPLsample(26))
, which processes a sample closed polygon list.
Algorithm explaination created using ChatGPT on 2025-08-18 23:17. (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