by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SG/Solids
Introduced first in SolidGeometry 3.1, Creation date: 2016-12-19, Last change: 2025-09-14
SG=SGof2SGT(A,FA,T1,B,FB,T2,[Rv,NCPL])
A: | Solid A | |
FA: | Framename of A | |
T1: | Current position frame FA in space; default is SGTget(A,FA) | |
B: | Solid B | |
FB: | Framename of A | |
T2: | Current position frame FB in space; default is SGTget(B,FB) | |
Rv: | Optional Radius for Solid | |
NCPL: | Optional Contour for Radius |
SG: | Solid Geoemtry |
A=SGbox; B=SGtransP(A,[40 0 5]); SGfigure(-30,30); SGplotalpha(A,'r'); SGplotalpha(B,'g')
SGof2SGT(A,'F',eye(4),B,'B',TofPez([50 50 50],[0 0 1]))
SGof2SGT(A,'F','',SGtransT(B,TofPez([50 50 50],[0 0 1])),'B')
SGof2SGT(A,'F','',SGtransT(B,TofPez([50 50 50],[0 0 1])),'F')
SGof2SGT(A,'F','',SGtransT(B,TofPez([50 50 50],[0 0 1])),'F','','',PLsquare(8,4))