Grasshopper

algorithmic modeling for Rhino

Hello Everyone, I am doing a water flow analysis on a steep terrain with grasshopper. In order to do that, I used mosquito to do a flow definition, where curves on the surface that represents the terrain tell me the way water would flow. What I want to do after I have these curves, is to apply a gradient that will vary the color according to their separation. For example, a red gradient would show dark intense red as lines get together to eachother, and lightter colors such as orange and yellow as they start getting apart. Is there a way to do that? I am new to GH and don't really know much about it. Thanks in advance!

Below are both the rhino and the definition.

Escorrentias.3dm

Escorrentias.gh

Views: 5072

Replies to This Discussion

Hi,

One way would be to divide the curves and assign colors acc. to the point density.

Obviously for better results you need to exclude some parameters like parallel or short curves.

But this could be a start: 

Attachments:

Thanks a lot phillips! Ill take a look at it! Looks good, and simple!

hi

is possible to select curve from color?

for example, from our sketch select only yellow curve?

thanks

Hi,

What scale you are working on?

Is it important to you to have a continuous space. 

Or could the water flow be calculated grid based?

if yes, you could use the Drainage Pattern sample from SpiderWeb.

Hi richard, from one extreme to the other its like 300 meters. I don't know how a grid based calculation could affect this, I just want to approximately know what are the areas with the major water flow, and the ones with less flow.

What does the Drainage Pattern exactly do?

Thanks!!!


It subdivides a surface into cells, and then calculates for each cell where the water will flow (steepest neighbour).

As can be seen in the example all cells part of the red area flow to one point. Depending what you want this can be adapted.

All calculations are based on graphs.

Yeah, this could be really helpful. Thanks a lot, i'll try it!!

Have you already looked at this old thread ?: http://www.grasshopper3d.com/xn/detail/2985220:Comment:792907

might be some helpful ideas in there

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service