[vtkusers] Get all the bounding boxes

David Doria daviddoria at gmail.com
Thu Oct 27 11:28:27 EDT 2011


On Thu, Oct 27, 2011 at 11:00 AM, Jalal Miftah <jalal.miftah at amadeus.com>wrote:

> Ah...
>
> Thanks for you reply,
>
> For now I was using a transform filter to rotate my point cloud in all the
> directions, and recompute a new bounding box.
>
> I still don't understand what vtkOBBTree is doing. Is it a tree with a lot
> of different bounding boxes?
> And it can help me, do you know how to get the minimum bounding box?
>
> Best regards,
>
> Jalal
>

The OBBTree is a hierarchical spatial data structure. You could use the root
(highest) level of the tree as one of your bounding boxes, but I don't think
that will really help you in your search for all of them. Here is more info:
http://www.vtk.org/doc/nightly/html/classvtkOBBTree.html#details

Note also that if you are planning to discretely rotate the data and then
recompute a box, it would probably be identical and much faster to compute
the box as simply the bounds:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DataBounds

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111027/faeb7ff8/attachment.htm>


More information about the vtkusers mailing list