by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Kinematics and Frames
Introduced first in SolidGeometry 5.0, Creation date: 2020-11-30, Last change: 2025-09-15
See Also: SGtransT
A=SGtransTui(A,[TA,TB])
A: | Frame A | |
TA: | Frame to attach; default is empty | |
TB: | Frame to attach to or Solid B; default is eye(4) |
A: | Solid attached to x/y plane or to another frame |
This function, SGtransTui, is designed to attach a solid object to the ground or another solid's surface. It is part of the SolidGeometry library and was introduced in version 5.0. The function takes in a frame A and optionally two transformation matrices, TA and TB.
TA and TB from the input parameters using getfuncparams. If TB is empty, set it to the identity matrix with a rotation of 180 degrees around the y-axis.TA is empty, use fiofselect3d to select a frame from A and determine the free boundary vertices using CVLfreeBoundaryVLFL.TB is a solid object using isSG. If true, perform the following:
TB to B and select a frame from B using fiofselect3d.TA.B using SGtransT with the inverse of TB.TB to the identity matrix and determine the free boundary vertices of B.A using SGtransT with the inverse of TA and then with TB.A using VLtransT with the inverse of TA and TB.A and optionally B using SGplotalpha and CVLplot.