SGunionreplace

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Boolean
Introduced first in SolidGeometry 5.2, Creation date: 2022-06-24, Last change: 2025-09-15

adds a solid after removing the bounding box of the solid

Description

In comparision with SGreplace the function SGunionreplace does NOT use SGconvexofSGintersect yet.

See Also: , SGtransrelSG , SGboolh , SGintersect , SGsubtract , SGxor , SGconcat , SGsupplement , SGreplace , SGconvexofSGintersect

Example Illustration

 missing image of SGunionreplace(A,B,relparam,

Syntax

SG=SGunionreplace(A,B,[relparam,"ol"])

Input Parameter

A: Solid A
B: Solid to unite after subtracting the bound box
relparam: relative arrangement parameter
"ol": option overlap parameter default is [0.1 0.1 0.1]

Output Parameter

SG: Modified Solid A

Examples


A=SGbox([100 20 2]); [B,C]=SGboxbolted([40 16 15]); B=SGTsetBFsimple(B); C=SGTsetBFsimple(C);
SGunionreplace(A,B,'matchT',{'F','F',TofP([0 0 .1])},'ol',0.1);
SGunionreplace(A,C,'matchT',{'F','F',TofP([0 0 0])},'ol',[0.1 0.1 0]);




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