CVLofSGfreeboundary

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CVL/Closed Vertex Lists
Introduced first in SolidGeometry 4.3, Creation date: 2018-09-04, Last change: 2025-09-14

returns the closed vertex list for all open surfaces

Description

Same as CVLofopenfaces. This function is more or less for testing purposes. The function VLFLcorrectdoubledvertex is called first, since otherwise it makes no sense to detect open surfaces

See Also: CVLofopenfaces , SGcheckboundaryedges

Example Illustration

 missing image of CVLofSGfreeboundary(SG)

Syntax

CVL=CVLofSGfreeboundary(SG)

Input Parameter

SG: Solid Geometry

Output Parameter

CVL: Closed Vertex List

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

Output

Algorithm Steps

  1. 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).
  2. 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).
  3. 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