jlblancoc / nanoflann

nanoflann: a C++11 header-only library for Nearest Neighbor (NN) search with KD-trees
Other
2.26k stars 491 forks source link

Feature Request: Unified Search Result Interface #6

Closed bakercp closed 9 years ago

bakercp commented 10 years ago

Currently search results are the same for radius and nearest neighbor sorts (distances and indices) but the packaging is different, making it challenging to swap search modes easily. If there is interest, and a feature addition isn't already underway, I can submit a patch to add the interface (without breaking the api).

bakercp commented 10 years ago

Also, thanks for all of your work on this. It's a great fork!

jlblancoc commented 10 years ago

Hi Christopher, Good idea: you can submit a patch or do a fork+PR, they will be more than welcome.

jlblancoc commented 9 years ago

Probably the new radiusSearchCustomCallback() method covers this functionality. Added in commit 633589785e0fb96dfe4640c7b2955711d5efd5c0 in nanoflann 1.1.9+

So, marking this as closed..