SGcenterFS

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

directly centers the desired feature surface



See Also: FSselect , TofFS , TofFSoutlinecenter

Example Illustration

 missing image of SGcenterFS(SG,fi,

Syntax

[SGN,T,fi]=SGcenterFS(SG,[fi,"rot","debug"])

Input Parameter

SG: Solid geomety
fi: cell list of facet index or
"rot": optional rotation angles
"debug": if used the debug function will be activated

Output Parameter

SGN: Solid with new center
T: Original coordinate frame of FS
fi: facet index of FS

Examples


SGmotorFeeTech; SGM=ans;SGM=SGrotate(SGM,'y',-pi/2); SGfigure(SGM)
[a,b,c]=SGcenterFS(SGM,{[1 2]},'rot',[0 pi/3 pi/10]); SGfigure(-30,30); SGplotalpha(a); SSS=SGtransT(SGM,inv(b)); SGplotalpha(SSS,'r',0.5);




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