Syntax
[CVL,TR2]=CVLfreeBoundaryVLFL(VL,FL)
Input Parameter
VL : | | Vertex List, or Solid Geometry, or triangulation |
FL : | | Facet list, if VL is Vertex list |
Output Parameter
CVL : | | Closed vertex contour list |
TR2 : | | triangulation |
Examples
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);
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, 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.
Input Parameters
- VL: This can be a Vertex List, a Solid Geometry object, or a triangulation.
- FL: A Facet List, required if VL is a Vertex List.
Output Results
- CVL: The Closed Vertex Contour List.
- TR2: The triangulation object.
Algorithm Steps
- Check if
VL
is a Solid Geometry object using isSG(VL)
.
- If
VL
is a Solid Geometry, create a triangulation TR2
using VL.FL
and VL.VL
.
- If
VL
is not a Solid Geometry and only one argument is provided, assume VL
is already a triangulation and assign it to TR2
.
- If two arguments are provided, use
VLFLselect(VL,FL)
to select the appropriate vertex and facet lists, then create a triangulation TR2
using these lists.
- Compute the free boundary edges
EL
of the triangulation TR2
using freeBoundary(TR2)
.
- Generate the closed vertex contour list
CVL
from the points and edges using CPLofPLEL(TR2.Points,EL)
.
- If no output is requested (
nargout==0
), plot the triangulation and the contour using SGfigure
, VLFLplot
, and CVLplot
.
Algorithm explaination created using ChatGPT on 2025-08-19 01:07. (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