SGinsideSurface

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - FS/Feature Surfaces
Introduced first in SolidGeometry 4.0, Creation date: 2017-07-06, Last change: 2025-09-14

Checks the distance between the centers of the facets

Description

The functions SGcheckfacedist and SGinsidesurface are very similar. Both ray trace the normal vector of a facet and detect self-penetration of other facets. While SGcheckfacedist looks backwards, SGinsideSurface looks forward along the normal vector. The only problem is the extreme time-consuming quadratic growing effort.Ā 
In SGcheckfacedist there is almost never a need to process the original data. But for SGinsidesurface there is wish to process the original data. There we use a heuristics to accelerate the algorithm. First we analyze freeeform surfaces using surfacesofSG, the we analyze just for each of those surfaces ONE surface to have an opponent.

See Also: SGcheckfacedist , SGinsidesurface , FLinsideSurfaceofSG

Example Illustration

 missing image of SGinsideSurface(SG,maxtry,wlim,ilim)

Syntax

[FIL,insFS]=SGinsideSurface(SG,[maxtry,wlim,ilim])

Input Parameter

SG: Solid Geometry
maxtry: Number of tries to find an opponing facet; default is 10
wlim: warning limit; default is 0.7 mm
ilim: intended limit; distance that is considered as intended; default is 0.1mm

Output Parameter

FIL: Facet surface index list
insFS: inside index of feature surface

Examples


load JACO_robot.mat
SG=SGsurfaces(JC3,3)
SGinsideSurface(SG)




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