It seems that FindClosestPoint (both versions) ocasionally produce incorrect points - where FindClosestNPoints works correctly every time. Here is sample code and the data file it is intended to work with. The correct index of the closest point is 1, but FindClosestPoint returns 121.<br>
<br><a href="http://rpi.edu/~doriad/VTK_List/ClosestPointBug/">http://rpi.edu/~doriad/VTK_List/ClosestPointBug/</a><br><br>Has anyone else had this problem? This seems to be a VERY big problem (potentially breaking many peoples code?) if I haven't done anything wrong. Can anyone confirm or deny? I will put it on Mantis if I don't hear people shouting that I just did something incorrectly! haha<br>
<br clear="all">Thanks,<br><br>David<br>