FLrepair

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

adds missing triangles to a facet list

Description

This function closes obvious missing triangles in a facet list.
Has clear limitations if a surface has edge facets with more than 90 degree angle

See Also: VLFLofVLELdelaunay3D , ELofELmesh

Example Illustration

 missing image of FLrepair(FL,VL,nedge)

Syntax

[FL,nc,no,nl]=FLrepair(FL,[VL,nedge])

Input Parameter

FL: Facet list
VL: Optional Vertex list
nedge:

Output Parameter

FL: Facet list with missing triangles
nc: number of closed triangles
no: number of still open triangles
nl: number of unconnected boundaries (Solid separation)

Examples


A=SGbox; [A.VL,A.FL]=VLFLaddfacetcenterpoints(A.VL,A.FL,2); SGfigure(A); VLFLplotlight(0,1);
X=A; VLFLdeleteFLofvi(X.VL,X.FL,6); X.FL=ans;
FLrepair(X.FL,X.VL);
X=A; VLFLdeleteFLofvi(X.VL,X.FL,[ 6 12]); X.FL=ans;
FLrepair(X.FL);
FLrepair(X.FL,X.VL);




Copyright 2017-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