Grasshopper

algorithmic modeling for Rhino

hi all,

 

how is it possible to sort the list of points (from this definition)

in sublists, depended to the center point, so that it should be possible

to switch to different lists, and create lines between center point

and the choosen list of points.

 

thanks

 

Views: 792

Attachments:

Replies to This Discussion

See the attached file, but one solution is to test the distance between the center of your figure and the surrounding points, then sort them by < or > or = with a little tolerance for avoiding errors.

A second one could be to generate 2 offsets for each "region" and then test your points for inclusion in these regions (in the case you have more than 3 groups of points, it will be more appropriate).

Attachments:

dear thibal,

 

thanks a lot for your work.

very cool.

dear Thibal,

 

sorry for the request!

can you explain, what you mean with "generate 2 offset for each region"?

 

thanks

Finally it is not a good solution. Here is a file that let you search for regions of points (sorted by distances from the center) and then make a tree for each region (so you have all the points of same distance from the center that are together by branches). Then it is using kangaroo removeDuplicatePoints to avoid any weird overlapping points.
Attachments:

dear Thaibal,

you are a great help.

thanks a lot.

 

 

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service