SGfixerrors

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

removes typical errors after surface manipulation

Description

Even after the use of matlab triangulation functions, there are sometimes facets that are of edge type. Those errors are removed with this function.
Used in exp_2015_08_08
1st: optional round to threshold (tr)
2nd: remove line type or point facets
3rd: removal of identical facets (still buggy or incomplete)

See Also: FLrepair

Example Illustration

 missing image of SGfixerrors(A,thr)

Syntax

A=SGfixerrors(A,[thr])

Input Parameter

A: Solid A
thr: threshold for VLFLshort2; default is 1e-20;

Output Parameter

A: Solid with removed errors

Examples


load JACO_robot.mat
SGfixerrors(JC0,1e-7)
SGfixerrors(JC0,1e-3)





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