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

Goodwin Lawlor goodwin.lawlor.lists at gmail.com
Mon Feb 4 19:44:09 EST 2013


Hi Gideon,

Have a look at how the vtkOBBTree::GeneratePolygons() method does it:

http://goo.gl/E854h

Or just use the public method vtkOBBTree::GenerateRepresentation (int
level, vtkPolyData *pd)

hth,

Goodwin



On Tue, Feb 5, 2013 at 3:07 AM, Gideon Valch <gvalch1237 at gmail.com> wrote:
> 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
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list