FSofSG
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - FS/Feature Surfaces
Introduced first in SolidGeometry 4.0, Creation date: 2017-07-09, Last change: 2025-09-14
Features surfaces of SG in contrast to selecting a FS FSselect and CPLofFS
Description
This function can take several seconds to classify all OPEN surfaces of a solid by using TR3neighborsAngle and neighborsAngleSurface. When called without output parameter; drawing the surfaces take the most time.
Since SG-Lib 5.3 empty cells are removed.
See Also: surfacesofSG
, FSplot
, FSselect
, CPLofFS
Example Illustration
Syntax
[CFL,nF,Ai,FNv]=FSofSG(TR,[alpha,sizesort,Amin,"text"])
Input Parameter
TR: | | Solid Geometry or Triangulation |
alpha: | | maximum angle difference between two facets; default is 1 ~ 60 degree |
sizesort: | | if true, the surfaces are sorted by their size; default is false |
Amin: | | Minimum area to be classified as individual surface, used only during printout |
"text": | | if used the graphics output shows the FS index numbers |
Output Parameter
CFL: | | Index List for the Surface Indices |
nF: | | number of faces per feature surface |
Ai: | | Size of Feature surface |
FNv: | | Average Normal vector of FS |
Examples
load JACO_robot.mat
FSofSG(JC3,0.6);
FSofSG(JC3,0.6,true);
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