PofBB

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - VL/Vertices/PC/Clouds
Introduced first in SolidGeometry 4.6, Creation date: 2019-05-08, Last change: 2025-09-14

returns a point relative to the bounding box

Description

The locations are defined to the optimized bounding box:
x = longest dimension, y = second, z = shortest dimension
'-' => minimal value of dimension
'c' => center of dimension
'+' => maximal value
loc = 'ccc' => center of bounding box
loc = '-cc' => center of plane at lower x value of BB
loc = 'c+-' => center of the longest axis of BB butoutside

See Also: SGconvexhullVL , SGofBB , BBofVL , textBB

Example Illustration

 missing image of PofBB(VLO,loc,turn)

Syntax

p=PofBB(VLO,[loc,turn])

Input Parameter

VLO: Vertex list, or SG or graphics handle
loc: location string 3 chars '+", '-', 'c'
turn: minimal bounding box; relative to

Output Parameter

p: coordinate relative to bounding biox

Examples


PofBB(SGarrow([0 0 0;1000 1000 1000]),'+-+',true)
PofBB(SGarrow([0 0 0;1000 1000 1000]),'ccc',true)




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