SGaddrelSG

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Boolean
Introduced first in SolidGeometry 3.2, Creation date: 2016-12-31, Last change: 2025-09-14

Spatial arrangement of a solid to another and combining both


Will be removed (2025-09-21): Use 'SGconcat' instead

Description

This function arranges the position of a solid A relative to the position of a solid B. It uses SGtransrelSG for the spatial arrangement and cat2 for combining.
The function supports also spatial arrangement relative to frames of SGB!

See Also: SGconcat , SGaddrelSG , SGtransrelSG , SGcat2

Example Illustration

 missing image of SGaddrelSG(SGA,SGB,rel,gap)

Syntax

SG=SGaddrelSG(SGA,SGB,[rel,gap])

Input Parameter

SGA: Solid A
SGB: Solid B
rel: spatial relations
gap: gap, optional parameter after an relation command

Output Parameter

SG: Final solid geoemtry

Examples

Align relative to geometry and relative to frames
A=SGbox([30,20,10]); B=SGofCPLCVLR(4,[20 0 20 ]); SGaddrelSG(B,A)
SGaddrelSG(SGA,SGB,'top','alignright',-5,alignback)
SGaddrelSG(B,A,'alignT',{'B','B'})




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