[vtk-developers] Confusing error message in vtkKdTree
Wylie, Brian
bnwylie at sandia.gov
Mon Mar 29 17:04:26 EDT 2010
Sounds good to me, go ahead and make the change... :)
Brian Wylie - Org 1424
Sandia National Laboratories
MS 1323 - Building CSRI/242
(505)844-2238 FAX(505)284-2518
_______ __
/_ __(_) /_____ _____
/ / / / __/ __ `/ __ \
/ / / / /_/ /_/ / / / /
/_/ /_/\__/\__,_/_/ /_/
Informatics Toolkit
From: vtk-developers-bounces at vtk.org [mailto:vtk-developers-bounces at vtk.org] On Behalf Of David Doria
Sent: Monday, March 29, 2010 2:28 PM
To: VTK Developers
Subject: [vtk-developers] Confusing error message in vtkKdTree
In vtkKdTree, the member variable LocatorPoints is created in BuildLocatorFromPoints.
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.
Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100329/aee3a4c2/attachment.html>
More information about the vtk-developers
mailing list