Grasshopper

algorithmic modeling for Rhino

Hi,

I am trying to figure out how to bend a line with a given length to create an arc by moving the start and end point of the line closer together with a slider. I included screenshots from a rhino rendering of the idea in different stages of bending.

Through attempts and research online I found a complex way of doing it (attached file), but I'm not too sure how it is working and I would think that there would be a simpler way.

Any help is much appreciated!

Cam

Views: 4196

Attachments:

Replies to This Discussion

When you say 'arc', do you just mean a curve? Or are you specifically talking about a portion of a circle?

Hi, thanks for your reply! I suppose I mean just a curve. Ideally the curve created would maintain the same length as the original line.

Here is a simple script which create four points and use nurbs curve. The first and last are on X axes. Second and third are used to bend the nurbs curve. As Curve has not the same length  there is a scale to have always the same scale. 

Just play with cursor (an angle in degree). 

Attachments:

Playing a bit with the script and lofting constant length curves on a an other curve

Attachments:

if ı mean the  second (real arc) how can I do that?

Attachments:

Thanks Daniel!  Your definition just solved something I've been working on for days.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service