Grasshopper

algorithmic modeling for Rhino

Hello.

I have a problem. I want to make a connection between a road and number of trees around it.

When I change the road width, I want to make the trees stand closer to each other.

I have made a curve that control the road width and I have made a curve with the trees on – but I don’t know how to connect them.

Anyone?

Views: 415

Replies to This Discussion

Its all math...

You have a width of the road w and a number of trees n. All you need to do is find an equaton that produces whatever number of trees you want for a given width. Then use n to subdivide your trees line and find the tree positions.

Or you can use the Remap component to map the current value of w from its range [wmin to wmax] to the range of [nmin to nmax] giving you the corresponding n to the given w.

... sorry, just seem to have misread your post... you really want to have an attractor curve working on a given grid(line) of trees?

Thanks for the answer. But I am just started in using this program, so I don’t understand it quite.

I have a picture of my Grasshopper – but I am not sure it is the right way to do it? And I don’t know where to use Remap in this?

The math thing is all about finding a relation of one parameter to the other and converting the value of one slider so it creates values such as your number of trees.

Remap is just a simple shortcut if the math relation is linear.

Just plug the R output to where the "Number of trees" slider goes.

Yes because it has to follow a city area. But it is also the only solution I could come up with.

Offset is really static and gives a constant width for the whole road. If you want th change width through the length of the road, first try to think of a way to construct this with rhino for a simple and short part of the road... then try to find GH components that do what you just did by hand.

Thank you! I think it works now.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service