jtsiomb / kdtree

A simple C library for working with KD-Trees
http://nuclear.mutantstargoat.com/sw/kdtree/
Other
395 stars 115 forks source link

kd_nearest_i function #21

Open bobobe opened 6 years ago

bobobe commented 6 years ago

the paramter struct kdhyperrect* rect is no change all the time.it's obvious wrong

SuDaxia-kai commented 1 year ago

I think the code is wrong. Because when we are finding the nearest node, we need to compare our node with the hyperrect of the Subtree. But the hyperrect in the code is the max rectangle containing all points.

bobobe commented 1 year ago

Thanks,I'll reply you soon