[vtkusers] question about using vtkOBBTree to find minimal bounding box

Gideon Valch gvalch1237 at gmail.com
Mon Feb 4 18:07:18 EST 2013


Hello all,

I'm a relative newbie to VTK and I've been trying to figure out how to use
vtkOBBTree to draw a minimal bounding box.  I've looked at the previous
postings in the archives...and while they've been helpful,  I still think
I'm missing something.  How is the box formed from the axes?  Please see
attached image.  It is a screengrab of the Stanford HappyBuddha (stand
right) with axes drawn using vtkOBBTree.

 I've included the python program.  Any help would be appreciated. I'm not
sure how size and corner are used with the 3 axes (max,mid and min) to
define the bounding box.


Thanks,
Gideon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130204/9154dfc2/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: happyStandRight_with_axis_boundingbox.jpg
Type: image/jpeg
Size: 15131 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130204/9154dfc2/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: obtreeBoundingBoxTest.py
Type: application/octet-stream
Size: 4589 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130204/9154dfc2/attachment.obj>


More information about the vtkusers mailing list