[vtkusers] KDTree BuildLocator not working
David Doria
daviddoria+vtk at gmail.com
Thu Nov 5 14:06:15 EST 2009
On Tue, Nov 3, 2009 at 12:49 PM, David Doria <daviddoria+vtk at gmail.com> wrote:
> See the code here:
> http://www.vtk.org/Wiki/KDTree_-_Closest_Point
>
> As you can see, I call BuildLocator() after adding the dataset. However,
> when I call FindClosestPoint, I get an error "must build locator first". Can
> anyone see where I have gone wrong?
>
> Thanks,
>
> David
>
Maybe this is a bug?
This doesn't work (the "you must build the tree first" error):
http://www.vtk.org/Wiki/KDTree_-_Closest_Point
But this works fine:
http://www.vtk.org/Wiki/KDTree_-_Closest_Point_%28vtkKDTreePointLocator%29
Any thoughts?
Thanks,
David
More information about the vtkusers
mailing list