Grasshopper

algorithmic modeling for Rhino

Hey everyone!

I cant seem to build a particular structure in GH.

I'm trying to make an adjustable segmented arc. The arc is to be build between two control points based on a set length and number of segments.

I understand this is more of a general geometry question, but I just hope that there is some tool/logic/plugin in GH that I'm just not aware of and that could be helpful. 

Any suggestions?

Views: 575

Replies to This Discussion

Hi Stepan, 

This may be too simple, but is this what you are after?

Hi Erik, It's not exactly what I want to achieve. It is vital for me to have arc segments maintain constant length no matter what distance between the control points is (unless it is greater than the length of all the segments combined).

I thought the equations looked do-able, but either I was wrong or I made a mistake. Even Mathematica can't seem to figure out how to solve for x on this one.

I attached a Galapagos solution, not ideal. It can be sped up significantly using some clever C# code which knows how to sample the arc, so if you need a fast solution let me know.

Attachments:

That's just what I needed!
I knew there was some tricky way to approach this problem. Turns out all I needed was Galapagos. Thanks for introducing me to it, and for the algorithm too.

As for the speed  it does not really matter for my purposes.

The Kangaroo physics Equalize Angles force with proper spring force/damping setting to avoid overshoot can do it too once fed a workable precursor to modify:

Just don't move the length slider too fast or you can still get overshoot and thus chaos:

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