SGconcat

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Boolean
Introduced first in SolidGeometry 4.9, Creation date: 2020-07-15, Last change: 2025-09-14

Simple Concatenation of Solid Geometries

Description

Sometimes there is no possibility to boolean unite solids but the calling code of SGunion is already written. In this case there is a compatible function SGconcat for simple concatenation that also supports relative positioning. This function is based on SGcat2 and SGtransrelSG.

See Also: , SGtransrelSG , SGboolh , SGintersect , SGsubtract , SGunion , SGxor , SGsupplement

Example Illustration

 missing image of SGconcat(A,B,relpos)

Syntax

SG=SGconcat([A,B,relpos])

Input Parameter

A: Solid A
B: Solid B
relpos: list of relative positions for SGtransrelSG

Output Parameter

SG: Concatenation Result of A+B

Examples


SGconcat(SGboxsphere([30,20,10],4,10))
SGconcat(SGboxsphere([30,20,10],4,10),SGbox([5,5,5]),'incenter','left',-2)
SGconcat(SGboxsphere([30,20,10],4,10),SGbox([5,5,5]),'incenter','infront',-2)




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