-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
findInCircle? #30
Comments
This is very cool work! |
findInPolygon was very fun to write but unfortunately, in my tests, even with a million data points it's still faster (or about the same speed) to run the baseline algorithm |
Published as an example of a visit https://observablehq.com/@d3/quadtree-findincircle |
I see #32 was closed without being merged. Why is that? IMO the feature would be a useful addition to |
I've closed #32 because I felt the code would be more useful as an example, rather than as another method added to the API. If people start using it en masse, it might change, but in the meantime what we probably need to do is to link to examples and show that quadtree.visit is not as intimidating as it might seem. |
Got it. Thanks! |
I have revised findAll (see the discussion in #18):
https://observablehq.com/d/ff2450667f13132f
also prepared a quadtree.findInPolygon() algorithm (which was fun!) (ping @gka)
https://observablehq.com/d/54a6e96b6630b0d9
I think both functions could be added to this module—however findInPolygon adds a dependency on a dedicated functions in d3.polygon (polygonIntersect, d3/d3-polygon#28), that doesn't yet exist, so don't expect it to land too soon (if at all).Anyways it's already usable by copying the code, and it would be great to have tests and feedback.
The text was updated successfully, but these errors were encountered: