SGmakedoublevertex

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Problems Find/Check/Fix
Introduced first in SolidGeometry 5.3, Creation date: 2023-06-09, Last change: 2025-09-15

copies a number of vertices as doubles with slightly different position

Description

Family of functions to create errors in surface models for testing repair algothims
SGmakemissingvertex
SGmakemissingfacet
SGmakedoublevertex
SGmakedoublefacets



See Also: SGshortopti , SGmakemissingvertex , SGmakemissingfacet

Example Illustration

 missing image of SGmakedoublevertex(SG,Vi,alpha,d,

Syntax

[SG,SGB,SGA]=SGmakedoublevertex([SG,Vi,alpha,d,"flip","auxc","auxg"])

Input Parameter

SG: Solid geometry; default is sphere (25);
Vi: indices of faces to remove; default is 1
alpha: alpha for separating the feature surfaces; default is .76
d: displacement in direction of normal vector;
"flip": if used; the orientation of the faces is turned to backwards
"auxc": create auxiliary points along the boundary edge
"auxg": create auxiliary grid points within the feature surface

Output Parameter

SG: SG with removed vertices and removed facets
SGB: Surfaces with displacement
SGA: Surfaces without displacement

Examples


SGmakedoublevertex(SGbox('noframe'),1,.76)
SGmakedoublevertex(SGsphere(5),290,.76,1)
SGmakedoublevertex(SGsphere(5),290,.76,1e-4); SG=ans; SGshortopti(SG)
SGmakedoublevertex(SGsphere(5),[290 400 3000],.76,1e-4);
SGmakedoublevertex(SGsphere(5),[290 400 3000],'flip'); showrf
SGmakedoublevertex(SGbox('noframe'),1,.76,1,'auxc',1,'auxg',2)




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