SGxor

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 XOR of Solid Geometries

Description

SGxor should not be used since it creates Solid that cannot be sliced!
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 , SGunion , SGconcat , SGsupplement

Example Illustration

 missing image of SGxor(A,B,relpos)

Syntax

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

Input Parameter

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

Output Parameter

SG: Boolean Result of A+B

Examples


SGxor(SGboxsphere([30,20,10],4,10))
SGxor(SGboxsphere([30,20,10],4,10),SGbox([5,5,5]),'incenter','left',-2)
SGxor(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