sofBB

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Geometric Queries
Introduced first in SolidGeometry 3.9, Creation date: 2017-06-17, Last change: 2025-09-14

returns the maximal dimension of the bounding box

Description

Useful function for some SG plot function

See Also: zofBB , BBofCPL , BBofSG , BBofVL , sofgca

Example Illustration

 missing image of sofBB(SG,minv)

Syntax

[ms,s,cp,bb]=sofBB(SG,[minv])

Input Parameter

SG: VL oder SG or BB
minv: optional minimal value; default is 0

Output Parameter

ms: max dimension
s: [sx,sy,sz]
cp: center point of BB
bb: BB of SG

Examples


sofBB(SGsample(1))
sofBB(VLsample(4))
sofBB(BBofCPL(PLcircle(5)))
A=SGsample(25); [~,b,c]=sofBB(A), SGfigure; SGplot(A); view(-30,30); bplot(c,b,'m--');




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