<?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 write code for this upper blue floor ? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-write-code-for-this-upper-blue-floor/m-p/242179#M3154</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your solution is the same one I just posted on another thread....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Footprint--&amp;gt; extrude(120) comp(f) {top: Roof1 Roof2 | side: Wall}

Roof1--&amp;gt; something ...

Roof2--&amp;gt;&amp;nbsp;something else....like making it smaller, extruding for a parapet, texturing...

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 12:08:19 GMT</pubDate>
    <dc:creator>DevinLavigne</dc:creator>
    <dc:date>2021-12-11T12:08:19Z</dc:date>
    <item>
      <title>How to write code for this upper blue floor ?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-write-code-for-this-upper-blue-floor/m-p/242178#M3153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For my work, I need to create similar upper floor&amp;nbsp; (Blue) over extruded footprints. It will be very helpful if you could share the code to achieve this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/438909_qwe.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2019 05:46:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-write-code-for-this-upper-blue-floor/m-p/242178#M3153</guid>
      <dc:creator>ShubhamBhatia</dc:creator>
      <dc:date>2019-03-07T05:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to write code for this upper blue floor ?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-write-code-for-this-upper-blue-floor/m-p/242179#M3154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your solution is the same one I just posted on another thread....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Footprint--&amp;gt; extrude(120) comp(f) {top: Roof1 Roof2 | side: Wall}

Roof1--&amp;gt; something ...

Roof2--&amp;gt;&amp;nbsp;something else....like making it smaller, extruding for a parapet, texturing...

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:08:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-write-code-for-this-upper-blue-floor/m-p/242179#M3154</guid>
      <dc:creator>DevinLavigne</dc:creator>
      <dc:date>2021-12-11T12:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to write code for this upper blue floor ?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-write-code-for-this-upper-blue-floor/m-p/242180#M3155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shubham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the following sample CGA Rule&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;/**
 * File:    split.cga
 * Created: 8 Mar 2019 05:09:16 GMT
 * Author:  Imran Khan
 */

version "2018.0"

attr height = 1200
attr floor_ht = height/3

Footprint --&amp;gt;
	extrude(height)
    split(y){floor_ht:groundFloor|floor_ht:middleFloor|floor_ht:topFloor}
    
groundFloor --&amp;gt;
color (0.3,0.3,0.2,0.5)
x.

middleFloor --&amp;gt;
color (0.3,0.5,0.8,0.5)
s(400,400,800)
center(xz)
x.

topFloor --&amp;gt;
color (0.3,0.5,0,0.5)
s(200,200,400)
center(xz)
x.&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Output will be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Splitting Building into Floors" class="image-1 jive-image j-img-original" src="/legacyfs/online/439783_Splitting Building into Floors.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:08:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-write-code-for-this-upper-blue-floor/m-p/242180#M3155</guid>
      <dc:creator>ImranKhan_P</dc:creator>
      <dc:date>2021-12-11T12:08:21Z</dc:date>
    </item>
  </channel>
</rss>

