Jump to content
  • Advertisement
Sign in to follow this  
chickencoop

Python Kd tree Help?

This topic is 3028 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ive been looking at Kd-trees, and want to get all the points and there coordiates within a certain distance of a given location. Ive done some searching on the internet and have found some functions that i think will do what im after.. The code can be found here http://scipy.org/Cookbook/KDTree the function that i think will do the task is def radius_search(tree, datapoint, radius): Im haveing trouble trying to use it can someone give me an idea of where to start with it?

Share this post


Link to post
Share on other sites
Advertisement
Umm... for 'tree' you pass the tree that you're working with, for 'datapoint' you pass the "certain location" you're talking about, and for 'radius' you pass the "certain distance" you're talking about. What's the problem?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!