<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to show flood height? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-show-flood-height/m-p/318735#M4391</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Dec 2014 17:19:52 GMT</pubDate>
    <dc:creator>juliamachin</dc:creator>
    <dc:date>2014-12-29T17:19:52Z</dc:date>
    <item>
      <title>how to show flood height?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-show-flood-height/m-p/318733#M4389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Right now my code looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; alignScopeToAxes(y)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s('1,0,'1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; extrude(floodheight)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; color (watercolour)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this correct? Do I need to add/change/remove anything? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 23:03:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-show-flood-height/m-p/318733#M4389</guid>
      <dc:creator>juliamachin</dc:creator>
      <dc:date>2014-12-23T23:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to show flood height?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-show-flood-height/m-p/318734#M4390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You said you are "&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;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.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Then your rule becomes:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Start --&amp;gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; alignScopeToAxes(y)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s('1,0,'1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; extrude(floodheight)&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; color (watercolour)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;And rather than extrude, you could alternately use translate() to just move the polygon up.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Also, you can add this for transparency:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;set(material.opacity, 0.5)&amp;nbsp; # use value between 0 and 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Dec 2014 21:33:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-show-flood-height/m-p/318734#M4390</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-12-28T21:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to show flood height?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-show-flood-height/m-p/318735#M4391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 17:19:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-show-flood-height/m-p/318735#M4391</guid>
      <dc:creator>juliamachin</dc:creator>
      <dc:date>2014-12-29T17:19:52Z</dc:date>
    </item>
  </channel>
</rss>

