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

Gideon Valch gvalch1237 at gmail.com
Tue Feb 5 00:44:33 EST 2013


Thanks Goodwin! I took your advice and looked at GeneralRepresentation.  In
fact, there's already an example (VisualizeOBBTree) that uses it.

On Mon, Feb 4, 2013 at 4:44 PM, Goodwin Lawlor <
goodwin.lawlor.lists at gmail.com> wrote:

> 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
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130204/bfbdf439/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: buddhaPlusbb.jpg
Type: image/jpeg
Size: 20947 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130204/bfbdf439/attachment.jpg>


More information about the vtkusers mailing list