Grasshopper

algorithmic modeling for Rhino

I am trying to find how many curves are repeated one over the other in the rhino file I'm attaching. I need to dispatch the ones where 1, 2, 3 or 4 lines share the same route and then position a circle that grows from the midpoints of these lines with a radius related to the number of repetitions of the corresponding line.

This could also be done by finding the midpoints of the series of lines and then counting how many points are sharing coordinates, but I'm not being able to solve any of these options. Any idea?

Views: 645

Attachments:

Replies to This Discussion

In the file I uploaded this is made with rhino, but I would like to find a way to make the same with grasshopper so I can apply the same operation to different patterns of lines easily. Thanks!

Hi,

you can try something like this. See attachement.

Best,

Raul

cant upload file...

again...

and a screen shot:

Attachments:

Thank you very much Raul!

Hey I need to create a bounding box around these circles, but in the cases they are overlapping each other I would need the bounding box to be generated surrounding the group of overlapping circles, I can't find the way to group the overlapping objects, any idea how to do this?

Thanks in advance!

Attachments:

'Right-click' on 'BBox' component and set 'Union Box' - returns box surrounding all input 'C (Content) as list'.

Thanks Joseph, the problem is I can't manage to group the intersecting circles so that I can afterwards apply the union box you mention. Any idea?

OK, I misunderstood.  You want a separate bounding box around each circle and/or group of intersecting circles?  Can't help you, sorry.

Yes that's what I need! Anybody can help with this?

Very easy thing that one (hope that you don't mind using some lines of C#, he he). Note: also doable with native components ... it's just far far easier for me to work via code.

BTW: is this a dendrogram? are you after Cluster Analysis, HAC's and the likes?

best, Peter

Attachments:

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