SGisIntersectingBB

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Geometric Queries
Introduced first in SolidGeometry 4.9, Creation date: 2020-01-16, Last change: 2025-09-14

returns all facets of a solid that are crossed/intersected by a bounding box

Description

The bounding box can also be a SGofBB Solid Geometry, and it is also possible to transfer the bounding box by a HT Frame like SGofBBui.

See Also: SGisInteriorofBB , SGofBBui , FLofVLFLvi , FLofVLFLfi , VLFLselect , VLFLselectcrossingfacets

Example Illustration

 missing image of SGisIntersectingBB(SG,bb,T)

Syntax

[SGi,si,ci,SIL]=SGisIntersectingBB(SG,bb,[T])

Input Parameter

SG: Solid Geometry
bb: bound bog or second solid
T: Transformation matrix for bb

Output Parameter

SGi: Solid that has faces that are crossed/intersected by the BB
si: facets of SG (not SGi) that are crossed/intersected by BB
ci: facets of SG (not SGi) that belong to the same surfaces of si
SIL: Sort Selection and Index list used to create SGi using VLFLselect

Examples


SG=SGofCPLcommand('c 4, h 10 m 4, dupg 3 3 1 20');
SGfigure; SGplotalpha(SG,'r',1); view(-30,30); SGofBBui; A=ans;
SGisIntersectingBB(SG,A)




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