<br><br><div class="gmail_quote">On Tue, Sep 15, 2009 at 10:17 PM, Kevin H. Hobbs <span dir="ltr">&lt;<a href="mailto:hobbsk@ohiou.edu">hobbsk@ohiou.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 09/15/2009 03:33 PM, David Doria wrote:<br>
&gt;<br>
&gt;<br>
&gt; Has anyone else had this problem?<br>
<br>
</div>Yes, but that was long ago, and a test was added at the end of<br>
/Filtering/Testing/Cxx/TestPointLocators.cxx that was supposed to check<br>
for this.<br>
<br>
Please confirm that you are using a reasonably new VTK.<br>
<br>
I can&#39;t remember if it was VTK or ITK where the last remaining issues<br>
with the KdTree seemed to only occur when the two points were almost<br>
exactly the same distance from the trial point, so close that the error<br>
could be from calculations being made in float verus double precision.<br>
<br>
Your test looks reasonable but I&#39;ve been awake for way too long and<br>
can&#39;t give it a thorough look.<br>
<br></blockquote><div><br>I am using the CVS VTK. I see the test in TestPointLocators.cxx, but apparently it is not testing the right thing! haha<br><br>These points are not any where near the same distance. The squared distance is ~9 for the correct one and ~3722 for the incorrect one!<br>
<br>Maybe someone can go through this example and see if this actually looks like a bug.<br><br clear="all">Thanks,<br><br>David<br></div></div>