Syntax
[NMEL,FLi,VL,FL]=SGchecknonmanifoldedges(SG)
Input Parameter
Output Parameter
NMEL : | | Edge list of non manifold eges |
FLi : | | facet index list of problematic facets |
VL : | | Vertex list of SG |
FL : | | Facet List of SG |
Examples
SG=SGsample(14); SGchecknonmanifoldedges(SG)
SG=SGsample(35); SGchecknonmanifoldedges(SG)
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, SGchecknonmanifoldedges
, is designed to identify non-manifold edges within a given solid geometry (SG). It is part of the SG-Library and was developed by Tim Lueth.
Input Parameters
- SG: This is the input solid geometry for which non-manifold edges need to be checked.
Output Results
- NMEL: A list of edges that are identified as non-manifold.
- FLi: A list of indices of facets that are problematic due to non-manifold edges.
- VL: A list of vertices from the solid geometry.
- FL: A list of facets from the solid geometry.
Algorithm Steps
- The function begins by extracting the vertex list (VL) and facet list (FL) from the solid geometry (SG) using the function
VLFLofSG(SG)
.
- It then checks the number of output arguments requested by the caller:
- If no output is requested (
nargout==0
), it calls VLFLchecknonmanifoldedges(VL,FL)
to perform the check and print the results using dbprintf
.
- If outputs are requested, it calls
VLFLchecknonmanifoldedges(VL,FL)
to obtain the non-manifold edge list (NMEL) and the facet index list (FLi).
Example Usage
Examples of how to use the function are provided:
SG=SGsample(14); SGchecknonmanifoldedges(SG)
SG=SGsample(35); SGchecknonmanifoldedges(SG)
These examples demonstrate how to call the function with different solid geometry samples.
Algorithm explaination created using ChatGPT on 2025-08-19 00:48. (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