Grasshopper

algorithmic modeling for Rhino

Hi all,

I am trying to create a curve that meanders around a set of circles. Something that looks like this:

Unfortunately, I don't even know where to begin to set up the curves. I already created a definition for adjusting the circle radii (See attached files). It would be great if you guys can give me some pointers. Much appreciated!

Views: 2571

Attachments:

Replies to This Discussion

took way too long before settling on what would be a good methodology to achieve this..
maybe someone has a more elegant solution, but this should be workable.

Basically makes a polyline of all the intersection points (adding a start/end point)
draws a perpendicular line from the center of each line segment (fluctuating left/right)
intersect said perpendicular with initial circles (grafted)
and draw a 3-point arc from said intersection and the end points of the line segments.

There's a toggle if you want to flip it
And the slider should just be set to an arbitrarily high number.

If you want the ends to flutter out, just add more circles. Though in that case you might look in to implementing some tree structure to the circles so you don't keep duplicating the components for it.

Attachments:

Hi Vongsawat,

Sorry for the late response and very much appreciate your help! The steps you laid out are very comprehensive for a beginner for me. I'm experimenting with evaluate curve component but have yet to come up with anything. I will try out what you recommended. Again, Thanks so much!

Perhaps try this.

Attachments:

Thank you for your help Agnes! I did not know Curve|Line intersection automatically extends the line to touch the perimeter of the circle

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