Grasshopper

algorithmic modeling for Rhino

hey guys!

i have a list of random points.

i want to sort them by the distance to each other.

the points wich are closer to each other (points in circles) should be in branch or sublist.

do you have any ideas to handle this?

thanks bea

Views: 1549

Replies to This Discussion

Each cluster would have it's own distance threshold, so I'd say iteration is the way.
You'd need to find closest pairs and collapse those into one point. Repeat that until you found the desired number of clusters.

My idea for that (not sure if it works) - 3d kmeans, where third dimension is distance to closest point.. dimensions should be weighted (x*1, y*1, z*e.g. 0.1) to manage with overlapping convex hulls (probably they wont be convex).

...but in this particular example 2d kmeans (x and y position) should work. search this forum for kmeans (there was a good script for that somewhere)

hm... i think i dont get it...

could you help with a defininition?

thank you so much!!!

http://www.grasshopper3d.com/group/coffee-and-grasshopper/forum/top...

Could be useful, some manual settings but the k-mean approach can perhaps complement it.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service