Thanks Goodwin! I took your advice and looked at GeneralRepresentation. In fact, there's already an example (VisualizeOBBTree) that uses it.<br><br><div class="gmail_quote">On Mon, Feb 4, 2013 at 4:44 PM, Goodwin Lawlor <span dir="ltr"><<a href="mailto:goodwin.lawlor.lists@gmail.com" target="_blank">goodwin.lawlor.lists@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Gideon,<br>
<br>
Have a look at how the vtkOBBTree::GeneratePolygons() method does it:<br>
<br>
<a href="http://goo.gl/E854h" target="_blank">http://goo.gl/E854h</a><br>
<br>
Or just use the public method vtkOBBTree::GenerateRepresentation (int<br>
level, vtkPolyData *pd)<br>
<br>
hth,<br>
<br>
Goodwin<br>
<div><div class="h5"><br>
<br>
<br>
On Tue, Feb 5, 2013 at 3:07 AM, Gideon Valch <<a href="mailto:gvalch1237@gmail.com">gvalch1237@gmail.com</a>> wrote:<br>
> Hello all,<br>
><br>
> I'm a relative newbie to VTK and I've been trying to figure out how to use<br>
> vtkOBBTree to draw a minimal bounding box. I've looked at the previous<br>
> postings in the archives...and while they've been helpful, I still think<br>
> I'm missing something. How is the box formed from the axes? Please see<br>
> attached image. It is a screengrab of the Stanford HappyBuddha (stand<br>
> right) with axes drawn using vtkOBBTree.<br>
><br>
> I've included the python program. Any help would be appreciated. I'm not<br>
> sure how size and corner are used with the 3 axes (max,mid and min) to<br>
> define the bounding box.<br>
><br>
><br>
> Thanks,<br>
> Gideon<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
</blockquote></div><br>