Grasshopper

algorithmic modeling for Rhino

Need some help here. Gradual/sectional distancing of points along a line.

Ok!
So, question of the day.
Might be an easy one, but since the beginning of the summer it seems i've grown a bit rusty.. again.

So here we go:
What i basically want to do, is to make a GH setup that allows me to set a curve/line, divide it into smaller segments, and bend (probably by adding "gravity" in kangaroo) the sections depending on the distance on the between endpoints of the sections.

Actually quite much like textile blinds.

Now, the conundrum i've got, is the distancing of the division points, along the line.
*drawing*

As with textile blinds when stretched out the line is straight

BUT when shortening down the overall length of the line, only one section gets squeezed at a time. and the rest of the points get pulled in the same direction.

Anyone understand what I mean, and got an idea as to how this should/could be done?

P.S.
Image added actually shows quite exactly the movement i'm looking for..

Views: 323

Attachments:

Replies to This Discussion

Try this as a starting point.... its not perfect, some glitches now and then that you can maybe figure out.

Attachments:

Holy  smokes, that was fast! ;)
Thanks Julian, i'll have a look at it right away :)

This works like a charm, but yeah I've stumbled upon one glitch.

Depending on the number of folds, when a certain amount of the cloth/line is "squeezed" together.. 
Other than that i'm going to see if i can figure out how i can arrange so that the folded cloth always is part of the main line, and not behind/outside it.

yeah, its not perfect. I think with a little sorting out the points at the gathering end could be smoother and remove the problems that I found it has.

The catenary is a nice in-built feature without having to use Kangaroo, but it does warn you if the fabric is taut. you may want to think about that and maybe re-engineer the definition to avoid the possibility of the fabric length being less than the distance between points (which I hadn't considered when building the drawstring part of the definition)

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service