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
[SG,SGB,SGA]=SGmakedoublevertex([SG,Vi,alpha,d,"flip","auxc","auxg"])
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 |
SG: | SG with removed vertices and removed facets | |
SGB: | Surfaces with displacement | |
SGA: | Surfaces without displacement |
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)