SGunion
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Boolean
Introduced first in SolidGeometry 4.9, Creation date: 2020-01-14, Last change: 2025-09-14
Boolean Addition of Solid Geometries
Description
more or less SGbool('+',A,SGtransrelSG(B,A))
This function belongs to a changed concept of polyshape versus the mapping toolbox since 2017b
Therefor the functions SGintersect, SGsubtract, SGunion, SGxor were implemented
See Also: , SGtransrelSG
, SGboolh
, SGintersect
, SGsubtract
, SGxor
, SGconcat
, SGsupplement
, SGunionreplace
, SGreplace
Example Illustration
Syntax
SG=SGunion([AA,B,relpos])
Input Parameter
AA: | | Solid A |
B: | | Solid B |
relpos: | | list of relative positions for SGtransrelSG |
Output Parameter
SG: | | Boolean Result of A+B |
Examples
SGunion({SGbox(10),SGbox(20),SGbox(30)}) % Cell mode
SGunion(SGboxsphere([30,20,10],4,10))
SGunion(SGboxsphere([30,20,10],4,10),SGbox([5,5,5]),'incenter','left',-2)
SGunion(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