by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CVL/Closed Vertex Lists
Introduced first in SolidGeometry 4.0, Creation date: 2017-07-05, Last change: 2025-09-14
See Also: , neighborsAngleSurface
[CVL,TR2]=CVLfreeBoundaryVLFL(VL,FL)
VL: | Vertex List, or Solid Geometry, or triangulation | |
FL: | Facet list, if VL is Vertex list |
CVL: | Closed vertex contour list | |
TR2: | triangulation |
loadweb JACO_robot.mat
SG=JC61; [NAL,NBL]=TR3neighborsAngle(SG); fi=neighborsAngleSurface(NAL,NBL,1,22000);
CVL=CVLfreeBoundaryVLFL(SG.VL,SG.FL(fi,:)); SGfigure; CVLplot(CVL,'--');
CV=separateNaN(CVL,10); CVLplot(CV,'-',3);
This function, CVLfreeBoundaryVLFL, computes the closed vertex contour list (CVL) of the free boundary from a given vertex list (VL) and facet list (FL). It is part of the SolidGeometry library.
VL is a Solid Geometry object using isSG(VL).VL is a Solid Geometry, create a triangulation TR2 using VL.FL and VL.VL.VL is not a Solid Geometry and only one argument is provided, assume VL is already a triangulation and assign it to TR2.VLFLselect(VL,FL) to select the appropriate vertex and facet lists, then create a triangulation TR2 using these lists.EL of the triangulation TR2 using freeBoundary(TR2).CVL from the points and edges using CPLofPLEL(TR2.Points,EL).nargout==0), plot the triangulation and the contour using SGfigure, VLFLplot, and CVLplot.