[vtkusers] vtkOBBTree (and other tree) levels
David Doria
daviddoria+vtk at gmail.com
Mon Aug 2 17:34:13 EDT 2010
On Mon, Aug 2, 2010 at 4:15 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> 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
Yep, wireframe does the trick.
Anyone know about the Level business?
David
More information about the vtkusers
mailing list