SGofBBui

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

interactive mode to create a bounding box of the current camera view and 2 mouse clicks



See Also: BBofSGcutT

Example Illustration

 missing image of SGofBBui(h,viewd,plong)

Syntax

[SB,dd,T,bb]=SGofBBui([h,viewd,plong])

Input Parameter

h: handle to gca
viewd: if true; the box depends on the view direction
plong:

Output Parameter

SB: Solid of SGtransT(SGofBB(dd,0),T)
dd: bounding box
T: Camera View Transformation
bb: smallest BB in view direction

Examples


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




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