surfacesofSG
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 4.0, Creation date: 2017-07-06, Last change: 2025-09-14
returns all feature surfaces (open boundaries) that have a limited angle between their normal vectors
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.
SGsurfaces returns CLOSED surfaces
TR3mountingfaces is a very similar function
See Also: FSofSG
, neighborsAngleSurface
, TR3neighborsAngle
, SGsurfaces
, TR3mountingfaces
Example Illustration
Syntax
[FIL,k,FNL,NAL,NBL,Ai]=surfacesofSG(TR,[alpha])
Input Parameter
TR: | | Solid Geometry or Triangulation |
alpha: | | maximum angle between two facets; default is 1 ~ 60 degree |
Output Parameter
FIL: | | Index List for the Surface Indices |
k: | | maximum value of FIL |
FNL: | | Facet Normal List - TR3neighborsAngle |
NAL: | | Neigbor Angle List - TR3neighborsAngle |
NBL: | | Neigbor List - TR3neighborsAngle |
Ai: | | Area of the indexed surfaces 1:k |
Examples
load JACO_robot.mat
surfacesofSG(JC3);
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