SGof2SGT

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

Creates a solid between two solids with frames

Description

Early function to connect two solids using a tube

See Also: TLofCVL , SGofCPLtransT , SGof2T , SGof2CVL , SGof2CPLz , SGof2CVL , SGof2CPLz

Example Illustration

 missing image of SGof2SGT(A,FA,T1,B,FB,T2,Rv,NCPL)

Syntax

SG=SGof2SGT(A,FA,T1,B,FB,T2,[Rv,NCPL])

Input Parameter

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

Output Parameter

SG: Solid Geoemtry

Examples


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))




Copyright 2016-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