VLFLcorrectdoubledvertex

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

finds and removes doubled vertex entries and shows degenerated facts

Description

After removal of doubled vertices, there can be degenerated facets of type [vi vk vk]. Those degenerated Facet MUST NOT BE REMOVED!

See Also: VLFLerrordoubledvertex , VLFLerroropenfaces

Example Illustration

 missing image of VLFLcorrectdoubledvertex(VL,FL,thr)

Syntax

[VLN,FLN,n]=VLFLcorrectdoubledvertex(VL,FL,[thr])

Input Parameter

VL: Vertex list
FL: Facet list
thr: resolution; default is 1e-12

Output Parameter

VLN: Shortend certex list with original, not rounded vertex values
FLN: Corrected facet list
n: number of removed vertices

Examples


A=SGbox([30,30,1]); VLFLcorrectdoubledvertex(A.VL,A.FL,2);
A=SGsample(25); VLFLcorrectdoubledvertex(A.VL,A.FL,1);
A=SGbox([30,20,10])
[B.VL,B.FL]=VLFLerrordoubledvertex(A.VL,A.FL)
[C.VL,C.FL]=VLFLcorrectdoubledvertex(B.VL,B.FL)




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