FLinsideSurfaceofSG
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - FS/Feature Surfaces
Introduced first in SolidGeometry 4.9, Creation date: 2020-08-04, Last change: 2025-09-14
Returns the Facet Indices of inside surfaces
Description
Uses SGinsideSurface
In contrast to SGinsideSurface, this function first of all splits a geometry into independent surfaces, which were possibly only combined with SGconcat. To avoid STL reading errors it is recommended to use the SGshortopti function for CATIA/SOLIDWORS exported models.
Afterwards the inner faces are detected for each of these surfaces.
It is not always useful to disassemble the surfaces first, so there is an option to switch this off
See Also: SGcheckfacedist
, SGinsidesurface
Example Illustration
Syntax
[FLi,SG]=FLinsideSurfaceofSG(SG,[seper,maxtry,wlim,ilim])
Input Parameter
SG: | | Solid Geometry |
seper: | | separate into independent surfaces first; default is true |
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 intended; default is 0.1mm |
Output Parameter
FLi: | | Facet surface index list |
SG: | | inside index of feature surface |
Examples
load JACO_robot.mat
SG=SGsurfaces(JC3,3)
FLinsideSurfaceofSG(SG);
FLinsideSurfaceofSG(SG); fi=ans; fi=find(fi); fi=fi(1), T=Tof3P(SG.VL(SG.FL(fi,:),:)); tplot(T,100); FSofSGT(SG,T,'',.1)
FLinsideSurfaceofSG(SG); fi=ans; SGN=SG; SGN.FL=SG.FL(fi,:); SGsurfaces(SGN)
Copyright 2020-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