I found the bug and fixed it in CVS head. Thanks for the info.<br><br>Andy<br><br>Message: 8<br>
Date: Tue, 15 Sep 2009 15:33:19 -0400<br>
From: David Doria <<a href="mailto:daviddoria%2Bvtk@gmail.com" target="_blank">daviddoria+vtk@gmail.com</a>><br>
Subject: [vtkusers] vtkKDTree FindClosestPoint bug?<br>
To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
Message-ID:<br>
<<a href="mailto:c19fcadc0909151233j62cf2ea9j9cda942b3c792ef9@mail.gmail.com" target="_blank">c19fcadc0909151233j62cf2ea9j9cda942b3c792ef9@mail.gmail.com</a><div>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
It seems that FindClosestPoint (both versions) ocasionally produce incorrect<br>
points - where FindClosestNPoints works correctly every time. Here is sample<br>
code and the data file it is intended to work with. The correct index of the<br>
closest point is 1, but FindClosestPoint returns 121.<br>
<br>
<a href="http://rpi.edu/%7Edoriad/VTK_List/ClosestPointBug/" target="_blank">http://rpi.edu/~doriad/VTK_List/ClosestPointBug/</a><br>
<br>
Has anyone else had this problem? This seems to be a VERY big problem<br>
(potentially breaking many peoples code?) if I haven't done anything wrong.<br>
Can anyone confirm or deny? I will put it on Mantis if I don't hear people<br>
shouting that I just did something incorrectly! haha<br>
<br>
Thanks,<br>
<br>
David<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20090915/f60d35bd/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20090915/f60d35bd/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
</div>