<div dir="ltr"><div>How do you know results are incorrect?</div><div><br></div><div>I had vtkKdTreePointLocator producing incorrect results with <font color="#008000" face="Consolas"><font color="#008000" face="Consolas">FindClosestPoint</font></font> (if not mistaken in 5.6.1).</div><div>Not sure was it fixed or not.</div><div>At the same time vtkPointLocator <font face="Consolas">FindClosestPoint </font>was providing correct result.</div><div>That was proven by brute force search of closest point (always work).</div><div><br></div><div>In you case it is not clear what methods you are using. </div><div>AFAIK there is no FindPoint method in any of above class.</div><div><br></div><div>In any case I suggest you to prove that it does not work by brute first method first and report the bug (if any).</div><div><br></div><div><br></div><div>Regards,</div><div> Alex</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 16, 2015 at 9:26 PM, madz <span dir="ltr"><<a href="mailto:madaramh@gmail.com" target="_blank">madaramh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have two sets of polydata called polydata A and polydata B. I want to match<br>
the points of polydata A to that of polydata B and get polydata output.<br>
<br>
The polydata A points looks like the following,<br>
<<a href="http://vtk.1045678.n5.nabble.com/file/n5730868/smallpoly.png" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5730868/smallpoly.png</a>><br>
<br>
Polyadata B looks like the following<br>
<<a href="http://vtk.1045678.n5.nabble.com/file/n5730868/largepoly.png" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5730868/largepoly.png</a>><br>
<br>
The output poydata does not gives the point locations correctly, it gives<br>
something like the following,<br>
<<a href="http://vtk.1045678.n5.nabble.com/file/n5730868/outputpoly.png" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5730868/outputpoly.png</a>><br>
<br>
I have tried this using,<br>
<br>
*polydataB->FindPoint(pointOfA)*<br>
<br>
and using both *vtkPointLocator *and *vtkKdTreePointLocator*, but both gives<br>
the same incorrect result. What should I do to avoid this problem.<br>
<br>
Thank you.<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/FindPoint-giving-incorrect-results-tp5730868.html" target="_blank">http://vtk.1045678.n5.nabble.com/FindPoint-giving-incorrect-results-tp5730868.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>