SGremsurfedgepoints

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 4.2, Creation date: 2018-03-06, Last change: 2025-09-14

returns a surface model without edge points and surface points that are inside of a surface

Description

This function is useful if a tetrahedron model (pde mesh) is converted into a surface model, or a solid is bent somehow. Afterwards there a surfaces that consist of many vertices that are in the same plane. This function analyses the surface and retesselate all surface based only on the boundary vertices.
IN ADDITION THIS FUNCTIONS OPTIMIZES THE TRIANGLES BY RETESSELATION

BUGGY since 2024a - delaunatTriangulation changed or tetramesh Use Line 62 in SGfittingsample

See Also: VLFLremsurfpoints , SGremsurfpoints , SGofpdemodel , SGremedgepoints

Example Illustration

 missing image of SGremsurfedgepoints(SG,alpha,minf)

Syntax

[SGN,FLN,FSi]=SGremsurfedgepoints(SG,[alpha,minf])

Input Parameter

SG: Solid Geometry surface model
alpha: alpha angle for feature surface; default is 0.01
minf: minimum facets per face; default is 5; smalles value

Output Parameter

SGN: New surface model with reduced vertices and faces
FLN: Reduced Facet list based on the original vertex list
FSi: Feature surface index list

Examples

Remove surface points and points on the line:
A=SGlinkage(5,30,5); model=pdemodelofSG(A,1); SGofpdemodel(model); B=ans
SGfusedoubledvertices(B,0.1); C=ans; % with rounded VL it is easier to find errors in triangulation
SGremsurfedgepoints(C)
SGremsurfedgepoints(SGsphere(10),0.1); % 0.1 makes sense




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