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
See Also: FSselect
, TofFS
, TofFSoutlinecenter
[SGN,T,fi]=SGcenterFS(SG,[fi,"rot","debug"])
SG: | Solid geomety | |
fi: | cell list of facet index or | |
"rot": | optional rotation angles | |
"debug": | if used the debug function will be activated |
SGN: | Solid with new center | |
T: | Original coordinate frame of FS | |
fi: | facet index of FS |
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);