SGboolh

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Boolean
Introduced first in SolidGeometry 4.3, Creation date: 2018-11-06, Last change: 2025-09-14

returns boolean operations on solid geometries using a heuristic

Description

without any change of SGbool/SGbool5 (Aug 2017) this function returns quite useful results by avoiding numerical instabilities.

See Also: CSGsample

Example Illustration

 missing image of SGboolh(flag,A,B);

Syntax

C=SGboolh(flag,A,B);

Input Parameter

flag: '+', 'x', 'A' ,'B'
A: Solid A
B: Solid B

Output Parameter

C: result of boolean operation

Examples


testfunctTL('[A,B]=CSGsample(#2); SGboolh(#1,A,B);','+xAB',1:10)
n=14; [A,B]=CSGsample(n); CSGsample(n)
SGboolh('+',A,B); SGcheckmeshlab(ans);
SGboolh('-',A,B); SGcheckmeshlab(ans);
SGboolh('A',A,B); SGcheckmeshlab(ans);
SGboolh('B',A,B); SGcheckmeshlab(ans);




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