Grasshopper

algorithmic modeling for Rhino

Example of Quad tree used for closest point search speed up?

All I can find is pattern making, does anyone have an example of how to use the data structure of a quad tree to find the closest point in a big set?

At the moment I'm doing an O(n^2) search and it is too slow.

Views: 1111

Replies to This Discussion

Hi Ben,

is this a C#/VB question? If so, can you move it into the C#/VB/Python forum?

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Hi, sorry for the very delayed reply. it wasn't a c# question, it was actually about using the quad tree component to produce an input to a bit of python, but the question was about the output of the quad tree component.

I was trying to roll my own closest point script, and I thought that using your trees would be better than brute forcing it.... then I noticed that there is a closest point component anyway.

Inspired by your posts on closest point searches (very nice by the way) I thought that I'd respond to this. It'd be great if that tree structure was expressed in a usable way from the n tree components rather than just being a neat pattern making trick.

Ben 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service