TofSGfil

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - FS/Feature Surfaces
Introduced first in SolidGeometry 5.5, Creation date: 2025-08-04, Last change: 2025-09-15

Provides the frame for a feature surface that is passed as a face index list.

Description

This function is nothing other than CPLofFS or CPLofVLFL, but cannot be found under this name if you are not interested in the contour but only in the frame in combination with FSselect.
Be careful, since there is no guarantee that T shows in the direction of the original surface. Consider TofSGFSselect for that.[spchk]

See Also: FSselect , TofSGFSselect , CPLofFS , CPLofVLFL

Example Illustration

 missing image of TofSGfil(SG,fil)

Syntax

[T,CPL]=TofSGfil([SG,fil])

Input Parameter

SG: Solid Geometry
fil: Facet index list of a closed surface

Output Parameter

T: Coordinates frame of the facet index list
CPL: Boundary contour of a planar feature surface

Examples


load JACO_robot.mat % or loadweb if not loaded already
TofSGfil(JC0,FSselect(JC0,[0 0 -1],'front',-1));
TofSGfil(JC0,FSselect(JC0,[+1 0 0],'front',-1))
TofSGfil(JC0,FSselect(JC0,[-1 0 0],'areadescend',1))
TofSGfil(JC0,FSselect(JC0,[+1 0 0],'areadescend',1)) % frames shows in the right direction
TofSGfil(JC0,FSselect(JC0,[+1 0 0],'areadescend',2)) % frames shows in the wrong direction




Copyright 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