[vtkusers] KdTree Problem - must build locator first

David Doria daviddoria at gmail.com
Tue Feb 10 13:48:30 EST 2009


That worked, thanks. But why didn't it work the first way I did it?

On Tue, Feb 10, 2009 at 1:41 PM, Kevin H. Hobbs <hobbsk at ohiou.edu> wrote:
> David Doria wrote:
>>
>>
>>        PointTree->BuildLocator();
>>
>>
>>
>> As you can see I have called BuildLocator prior to calling
>> FindClosestNPoints. What else is wrong?
>>
>
> Use BuildLocatorFromPoints ( vtkPointSet
> <http://www.vtk.org/doc/nightly/html/classvtkPointSet.html> *  /pointset/  )
>  if you want to use points and not cells.
>
>
>
>



-- 
Thanks,

David



More information about the vtkusers mailing list