SGrepairnonmanifoldvertices
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Problems Find/Check/Fix
Introduced first in SolidGeometry 4.3, Creation date: 2018-08-30, Last change: 2025-09-14
returns a solid without non manfold vertices
Description
Non manifold vertices are vertices that are shared in separate surface models. This can only exist if there are several separate surface models in a VLFL structure. SGsurfaceplot/SGseparate would display multiple surfaces.
Current method: For the vertices that have been used several times, the respective surface normal vector is calculated separately in each surface and the vertex is slightly shifted in the opposite direction. This separates the surface when they have had a different orientation.
ATTENTION: Meshlab consideres points with a distance less than 1e-4 as identical!
There are different strategies to resolve the non manifold vertices.
a) Disconnect and insert a distance
b) Separate and slide the surfaces into each other
c) Separate and then selectively connect using additional points to form a link or several common points, i.e. a link of length zero.
See Also: SGshortopti
Example Illustration
Syntax
SGc=SGrepairnonmanifoldvertices(SG)
Input Parameter
Output Parameter
SGc: | | Resulting Geometries as cells |
Examples
loadweb JACO_robot.mat;
SGrepairnonmanifoldvertices(JC3)
SGrepairnonmanifoldvertices(SGshortopti(JC3,'boundary'))
SGrepairnonmanifoldvertices(J63)
SGrepairnonmanifoldvertices(SGSample(37))
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
Last html export of this page out of FM database by TL: 2025-09-21