[vtkusers] vtkOBBTree (and other tree) levels

Bill Lorensen bill.lorensen at gmail.com
Mon Aug 2 16:15:15 EDT 2010


Try looking at the results in wireframe. At least for the kdtree
example run on the bunny, I see differences.

On Mon, Aug 2, 2010 at 1:24 PM, David Doria <daviddoria+vtk at gmail.com> wrote:
> In this example:
> http://www.vtk.org/Wiki/VTK/Examples/DataStructures/VisualizeOBBTree
>
> I am trying to tell it to generate 6 levels of the tree.
>
> I tried this:
> obbTree->AutomaticOff();
> obbTree->SetMaxLevel(6);
> obbTree->BuildLocator();
>
> but
>
> std::cout << "Generating " << obbTree->GetLevel() << " levels." << std::endl;
>
> outputs "2".
>
> Also, in this example:
> http://www.vtk.org/Wiki/VTK/Examples/DataStructures/VisualizeKDTree
>
> Although it says it is generating 8 levels, all of the visualizations
> seem to be simply the bounding box. How would one show the levels of
> the tree?
>
> Thanks,
>
> David
> _______________________________________________
> 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