[vtkusers] Get all the bounding boxes

David Doria daviddoria at gmail.com
Thu Oct 27 09:49:17 EDT 2011


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

> Hi,
>
> Thanks for you reply.
> Indeed I want a single bounding box for all my point cloud, let me explain
> :
> I have a point cloud, and I have to find, among all the bounding boxes, the
> correct one (it's not necessarily oriented in the same direction of the
> axis). I know how to determine the right one.
> Now I need to find a way to get all the bounding boxes.
> For now I was rotating my point cloud and computing a new bounding box each
> time, but it's not really perfect.
> I tried vtkOBBTree, but I have an eigenfunction issue. (I have this inside
> my vtkPolyData :
>
> vtkPoly->SetPoints(points); // vtkPoints * (xyz data)
> vtkPoly->SetVerts(conn); // vtkCellArray *
> vtkPoly->GetPointData()->SetScalars(colors); // vtkUnsignedCharArray * (rgb
> data)
>
>  )
>
> Do you need more explanations?
>

Please keep the discussion on the mailing list.

vtkOBBTree will generate a hierarchical tree of boxes, so I don't think
that's what you're looking for. Are you are trying to determine the smallest
possible bounding box of the points? I still don't understand what you mean
by "all the boxes".

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


More information about the vtkusers mailing list