SGchecknonmanifoldedges

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Problems Find/Check/Fix
Introduced first in SolidGeometry 4.3, Creation date: 2018-08-24, Last change: 2025-09-14

returns the edges and facets with non manifold edges

Description

This function should return the same results as the output of Meshlab from http://vcg.isti.cnr.it


See Also: , VLFLchecknonmanifoldedges , VLFLchecknonmanifoldvertices , SGchecknonmanifoldvertices

Example Illustration

 missing image of SGchecknonmanifoldedges(SG)

Syntax

[NMEL,FLi,VL,FL]=SGchecknonmanifoldedges(SG)

Input Parameter

SG: Solid Geoemtry

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

Output Results

Algorithm Steps

  1. The function begins by extracting the vertex list (VL) and facet list (FL) from the solid geometry (SG) using the function VLFLofSG(SG).
  2. 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