Open whu-lyh opened 1 year ago
forget to mention that I write a adaptor of the original nanoflann kdtree class for better usage.
Hi @whu-lyh :
Please, we would need a complete, minimum size, full code (a CMakeLists.txt + test.cpp) and data (if applicable) to verify what's going on.
@jlblancoc , thanks for the reply but I could not provide the minimum size code for now, and I implement the kdtree search operation with CoudCompare octree for the deadline of project in a hurry. I will try to reproduce this bug.
The size of searchIndexes is always equal to 1 during the for-loop(I have checked the point that the number of the nearest point is large), and once the searched point's distance is too large(e.g. distance>10m ), the searchIndexes[0] also be same with the i-1 iteration result. What's the point? Is this a bug?