TofFSoutlinecenter

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Kinematics and Frames
Introduced first in SolidGeometry 5.4, Creation date: 2024-07-06, Last change: 2025-09-15

returns the HT Matrix fo the center of the FS

Description

In contrast to TofFS this function is returning the center of the outline econtour, which is useful if the FS has bore holes that move the mean value of the vertices outside the real center

See Also: FSselect , TofFS

Example Illustration

 missing image of TofFSoutlinecenter(SG,fi,

Syntax

[T,CPLA,fi]=TofFSoutlinecenter(SG,[fi,"debug"])

Input Parameter

SG: SOlid Geometry
fi: list of indices ot list of features identical to FSselect
"debug": if used the ctreation is shown

Output Parameter

T: Center frame of the surface
CPLA: Outer conotur in the eye(4) CS
fi: faces index list

Examples


SGmotorFeeTech; SGM=ans;SGM=SGrotate(SGM,'y',-pi/2); SGfigure(SGM)
TofFSoutlinecenter(SGM,[+1 0 0],'front',-100,'areadescend',1)
TofFSoutlinecenter(SGM,{[1 2]})
TofFSoutlinecenter(SGM,[-1 0 0],'front',-100,'areadescend',1,'debug')
[T,CPLA]=TofFSoutlinecenter(SGM,[0 0 1],'front',-100,'areadescend'); SGfigure(SGM); CVLplot(VLtransT(CPLA,T),'b-',3); tplot(T,40);
[T,CPLA]=TofFSoutlinecenter(SGM,[0 0 -1],'front',-100,'areadescend'); SGfigure(SGM); CVLplot(VLtransT(CPLA,T),'b-',3); tplot(T,40);
[T,CPLA]=TofFSoutlinecenter(SGM,[0 0 -1],'front',-100,'areadescend'); SGfigure(SGM); CVLplot(VLtransT(CPLA,T),'b-',3); tplot(T,40);




Copyright 2024-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