how to show flood height?

3071
2
Jump to solution
12-23-2014 03:03 PM
juliamachin
New Contributor II

I am hoping to show the simplified impact of different flood heights in my scene. I have a polygon that covers the extent, and I would like to be able to extrude it to a specified water height. However, I'm not sure how to make my polygon sit flat at 0 metres to start. The terrain in my scene starts at -1.5m, and I don't know if my polygon is starting from here or zero elevation or something else.

Right now my code looks like this:

Start -->

    alignScopeToAxes(y)

    s('1,0,'1)

    extrude(floodheight)

    color (watercolour)

Is this correct? Do I need to add/change/remove anything? Thanks!

0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable

You said you are "not sure how to make my polygon sit flat at 0 metres to start". Don't use the rule for this part. Just select your polygon. Right-click and select "align shapes to terrain". Choose "Project All", and heightmap "y = 0". That makes your polygon sit flat at 0 meters.

Then your rule becomes:

Start -->

    alignScopeToAxes(y)

    s('1,0,'1)

    extrude(floodheight)

    color (watercolour)

And rather than extrude, you could alternately use translate() to just move the polygon up.

Also, you can add this for transparency:

set(material.opacity, 0.5)  # use value between 0 and 1.

View solution in original post

0 Kudos
2 Replies
by Anonymous User
Not applicable

You said you are "not sure how to make my polygon sit flat at 0 metres to start". Don't use the rule for this part. Just select your polygon. Right-click and select "align shapes to terrain". Choose "Project All", and heightmap "y = 0". That makes your polygon sit flat at 0 meters.

Then your rule becomes:

Start -->

    alignScopeToAxes(y)

    s('1,0,'1)

    extrude(floodheight)

    color (watercolour)

And rather than extrude, you could alternately use translate() to just move the polygon up.

Also, you can add this for transparency:

set(material.opacity, 0.5)  # use value between 0 and 1.

0 Kudos
juliamachin
New Contributor II

Thank you!

0 Kudos