[vtk-developers] Confusing error message in vtkKdTree

David Doria daviddoria+vtk at gmail.com
Mon Mar 29 16:27:45 EDT 2010

In vtkKdTree, the member variable LocatorPoints is created in

If you call FindClosestPoint without calling BuildLocatorFromPoints, the
error generated (line 2203) is

"vtkKdTree::FindClosestPoint: must build locator first"

Can we change this to

"vtkKdTree::FindClosestPoint: must call BuildLocatorFromPoints first"

As it is, it is very confusing, since a BuildLocator function also exists.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100329/cb075940/attachment.html>

More information about the vtk-developers mailing list