by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 4.0, Creation date: 2017-07-16, Last change: 2025-09-14
See Also: VLFLofCPLz
, VLFLofCPLrot
[VL,FL]=VLFLofCPL(CPL)
CPL: | CPL |
VL: | Vertex list | |
FL: | Facet list |
pc=PCofSG(SGsample(25),30000);
SGfigure; VLplot(pc.Location,'r*',2);
axis(axis*1.1); axis off; CPL=CPLofimage(getframe(gca)); VLFLofCPL(CPL); view(0,90)
This function, VLFLofCPL, is designed to generate a vertex list (VL) and a facet list (FL) from a closed contour list (CPL). It is part of the SG-Library and was introduced in SolidGeometry 4.0.
PLELofCPL with CPL as input to obtain the point list PL and edge list EL.TR using PL and EL.VL.isInterior(TR) and filter the connectivity list to obtain FL.SGfigure, VLFLplot, and VLFLplotlight.The example provided demonstrates how to use the function in conjunction with other functions from the SG-Library:
pc = PCofSG(SGsample(25), 30000); SGfigure; VLplot(pc.Location, 'r*', 2); axis(axis * 1.1); axis off; CPL = CPLofimage(getframe(gca)); VLFLofCPL(CPL); view(0, 90);Algorithm explaination created using ChatGPT on 2025-08-18 23:14. (Please note: No guarantee for the correctness of this explanation)