Grasshopper

algorithmic modeling for Rhino

Hi. All. Just wondering if anyone could give me some tip to resolve this issue. I am trying to find group three nearest circles into groups in grasshopper without any overlap. 

I thought it is super easy to resolve but I am struggling. Can anyone advise me?

 

Views: 426

Replies to This Discussion

I'm not sure I understand what you want to achieve. do you want to search between all circles to find those with closest centres?

if that's the case I would try by using a delaunay mesh with the centres, measuring face boundaries, and sorting to select top 3

thanks for the reply. What I want is just simply group 3 closest circles together. If you use delauny mesh, you will have duplicated points. Correct me if I am wrong. I have got some solution now but I am sure that someone might have better idea. I am attaching the file for your information. Any advice will be greatly appreciated.

Attachments:

Do you want to divide all your circles in groups of 3? How do you define a logic to do such operation? how can you avoid having single circles left over here and there. The best way I can think is using Galapagos to brute force your way to the fittest solution by aiming to minimal group n and min triangle centre to centre length.

I don't want to make only 3 groups. As the attached image above, I want to make three closest circles together as one group then the same rule applies to all circles. Hope that it make sense.

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