<?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: Extrude elevation instead of height in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-elevation-instead-of-height/m-p/311630#M4282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;are you looking to extrude the building to it's actual height? (e.g are you trying to make an accurate representation of a real life building?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;also is the 400m altitude an attribute of the underlying terrain?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Dec 2013 08:37:15 GMT</pubDate>
    <dc:creator>JamieIngall</dc:creator>
    <dc:date>2013-12-16T08:37:15Z</dc:date>
    <item>
      <title>Extrude elevation instead of height</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-elevation-instead-of-height/m-p/311629#M4281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm a new user of CityEngine, i'm a engineering student in topography (french).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to know if it's possible to get the coordinates of a shape in order to use them in the python code ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example I have a shape at the elevation of 400 meters and I'd like to extrude it until 420 meters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;attr shapeType = ""&lt;BR /&gt;attr Altitude = 420&lt;BR /&gt;&lt;BR /&gt;@StartRule&lt;BR /&gt;Height = Altitude - (?? get the shape elevation ??)&lt;BR /&gt;&lt;BR /&gt;Lot --&amp;gt;&lt;BR /&gt; case shapeType == "LotInner" :&lt;BR /&gt;&amp;nbsp; Lot.&lt;BR /&gt; else :&lt;BR /&gt;&amp;nbsp; extrude(world.y, Height) comp(f) { side : Wall | top : Roof }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your answers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Dec 2013 16:42:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-elevation-instead-of-height/m-p/311629#M4281</guid>
      <dc:creator>JimmyFedczyszyn</dc:creator>
      <dc:date>2013-12-15T16:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Extrude elevation instead of height</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-elevation-instead-of-height/m-p/311630#M4282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;are you looking to extrude the building to it's actual height? (e.g are you trying to make an accurate representation of a real life building?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;also is the 400m altitude an attribute of the underlying terrain?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 08:37:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-elevation-instead-of-height/m-p/311630#M4282</guid>
      <dc:creator>JamieIngall</dc:creator>
      <dc:date>2013-12-16T08:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Extrude elevation instead of height</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-elevation-instead-of-height/m-p/311631#M4283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your answer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a Raster DTM at around 400 m.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have aligned shapes to terrain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So my shapes have all a different altitude. Around 400 meters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes i'm trying to make an accurate representation of real buildings, wich I know their top altitude.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to extrude buildings at 420 m for example. Ok I can extrude 20 m.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But how to use the altitude ? How can I get the altitude of the shape ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I could have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;attr Altitude = 420 m&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Height = Altitude - ShapeAltitude&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;extrude(world.y, Height) ...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 09:44:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-elevation-instead-of-height/m-p/311631#M4283</guid>
      <dc:creator>JimmyFedczyszyn</dc:creator>
      <dc:date>2013-12-16T09:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Extrude elevation instead of height</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-elevation-instead-of-height/m-p/311632#M4284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am not aware of any way that you can determine the altitude from the DTM in order to use it within a rule file (although someone may be able to tell you differently??)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Obviously in your case this would be useful as it would allow you to create a rule whereby building height= TopofShapeAltitude-DTMaltitude.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead, perhaps you could look at using arcMap for example in order to create an attribute for your building lots?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;eg. If you had DTM and DSM you could work out building height by DSM-DTM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That way you could extrude to your building height attribute without having to worry about any calculations within CityEngine?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 10:13:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-elevation-instead-of-height/m-p/311632#M4284</guid>
      <dc:creator>JamieIngall</dc:creator>
      <dc:date>2013-12-16T10:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Extrude elevation instead of height</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-elevation-instead-of-height/m-p/311633#M4285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi Jamie,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please watch this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://video.arcgis.com/watch/1769/tutorial-3-map-control"&gt;http://video.arcgis.com/watch/1769/tutorial-3-map-control&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Terrains automatically set up some mapping code in the Terrain Layer attributes that lets you sample the elevation value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 12:02:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-elevation-instead-of-height/m-p/311633#M4285</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-12-16T12:02:32Z</dc:date>
    </item>
  </channel>
</rss>

