SGtransrelT

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Spatial Relations
Introduced first in SolidGeometry 4.1, Creation date: 2017-08-22, Last change: 2025-09-14

tranforms a solid relative to known one

Description


SGN=SGtransT(SG,T0*T*(eye(4)/T0));


See Also: SGTsetorigin , SGtrans , SGtrans0 , SGtrans1 , SGtransP , SGtransR , SGtransrelSG , SGtransT

Example Illustration

 missing image of SGtransrelT(SG,T0,T,dv)

Syntax

SGN=SGtransrelT(SG,[T0,T,dv])

Input Parameter

SG: Solid Geometry
T0: Reference Frame Matrix such as rotation axis or string for SGTget
T: Relative Transformation Frame such as relative rotation; Frame to become the center
dv: 'r' revolution or 'prismatic' if T is size(1) or size([1 3])

Output Parameter

SGN: Spatial transformed solid

Examples


SGtorquefuse;SG=ans; % SG with two Frames 'B' at [0 0 -3] and 'F' at [0 0 3]
SGtransrelT(SG,'',SGTget(SG,'F')) % Move the origin of SG to Frame 'F'
SGtransrelT(SG,'',SGTget(SG,'B')) % Move the origin of SG to Frame 'B'
SGtransrelT(SG,'',inv(SGTget(SG,'F'))) % F will be moved to the origin
SGtransrelT(SG,'',inv(SGTget(SG,'B'))) % B will be moved to the origin




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