Syntax
CVL=CVLofSGfreeboundary(SG)
Input Parameter
Output Parameter
Examples
loadweb JACO_robot.mat; A=SGseparate(JC2,2)
CVLofopenfaces(A.VL,A.FL);
loadweb AAruffo_surf.mat % load some surface data sets
CVLofSGfreeboundary(SG1);
Copyright 2018-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, CVLofSGfreeboundary
, is designed to return the closed vertex list (CVL) for all open surfaces in a given solid geometry (SG). It is primarily used for testing purposes and is part of the SolidGeometry library.
Input Parameters
- SG: This is the Solid Geometry input, which can be a structure containing vertex and face lists.
- FL (optional): Face List. If not provided, it is derived from the Solid Geometry input.
Output
- CVL: The Closed Vertex List, which represents the vertices that form the boundary of open surfaces.
Algorithm Steps
- Check the number of input arguments using
nargin
:
- If only one argument is provided, extract the vertex list (VL) and face list (FL) from the Solid Geometry (SG) using the function
VLFLofSG
.
- If two arguments are provided, assume the first argument is the vertex list (VL) and the second is the face list (FL).
- Call the function
CVLofopenfaces
with the vertex list (VL), face list (FL), and a tolerance value of 1e-17
to compute the closed vertex list (CVL).
- If no output is requested (
nargout == 0
), visualize the results:
- Create a new figure using
SGfigure
.
- Set the view angle to (-30, 30).
- Plot the solid geometry using
SGplot
with white color ('w').
- Adjust the plot lighting using
setplotlight
with white color ('w') and intensity 0.5.
- Plot the closed vertex list (CVL) using
CVLplot
with green color ('g.-') and line width 2.
This function is part of a larger library and is used in conjunction with other functions like CVLofopenfaces
and SGcheckboundaryedges
to analyze and visualize the boundaries of solid geometries.
Algorithm explaination created using ChatGPT on 2025-08-19 00:31. (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