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 &lt;<a href="mailto:daviddoria%2Bvtk@gmail.com" target="_blank">daviddoria+vtk@gmail.com</a>&gt;<br>
Subject: [vtkusers] vtkKDTree FindClosestPoint bug?<br>
To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:c19fcadc0909151233j62cf2ea9j9cda942b3c792ef9@mail.gmail.com" target="_blank">c19fcadc0909151233j62cf2ea9j9cda942b3c792ef9@mail.gmail.com</a><div>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<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&#39;t done anything wrong.<br>
Can anyone confirm or deny? I will put it on Mantis if I don&#39;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: &lt;<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>&gt;<br>


<br>
------------------------------<br>
</div>