SGofBB

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SG/Solids
Introduced first in SolidGeometry 2.4, Creation date: 2015-08-03, Last change: 2025-09-14

returns a solid for a bounding box

Description

The bounding box can be increased in all direction by an distance vector. d=[1 1 1] will lead to an enlargement of the bounding box by 2 mm in the three x y z directions..
For shape optimized cell type bounding boxes use BBofSG directly
SGofBB(SG) Creates the Bounding Box Solid in the world frame
SGBB Creates the Bounding Box Solid in the solids frame
SGconvexHull(SG) Create the Convex Hull in in the solids frame
SGconvexHullXYZ(SG) Create the projected Convex Hull in the world frame

See Also: , BBofVL , CPLofBB , VLFLofBB , BBofSG

Example Illustration

 missing image of SGofBB(BB,d)

Syntax

SG=SGofBB(BB,[d])

Input Parameter

BB: Result of BBofVL, i.e. [xmin xmax ymin ymax zmin zmax]
d: enlargement in [x y z]; default is d=[1 1 1]

Output Parameter

SG: Solid box of size of the Bounding Box

Examples


SG=SGofCPLz(PLcircle(10,8),40); SGfigure(SG); view(-30,30);
SGofBB(BBofVL(SG.VL))




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