<?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: Breaking up facades into sections in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/breaking-up-facades-into-sections/m-p/524984#M7156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey thanks that code works amazingly! I just need to determine which Index number the walls are that I want doors in and apply the code to it but replacing colour with texture etc! Very nice! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jul 2012 20:43:09 GMT</pubDate>
    <dc:creator>JoanneO_Brien</dc:creator>
    <dc:date>2012-07-05T20:43:09Z</dc:date>
    <item>
      <title>Breaking up facades into sections</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/breaking-up-facades-into-sections/m-p/524982#M7154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm just learning cityengine and am trying to break up the ground floor layer into sections. My building is a fairly complex hexagonal shape with multiple sides but I only want entrances on two of the sides, and tiles on the rest. How do I write the code to achieve this? Is there a way to assign each side a different name or something so that only some sides contain doors?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 21:14:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/breaking-up-facades-into-sections/m-p/524982#M7154</guid>
      <dc:creator>JoanneO_Brien</dc:creator>
      <dc:date>2012-06-25T21:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking up facades into sections</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/breaking-up-facades-into-sections/m-p/524983#M7155</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'd try to make this with the comp.index&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;after extruding your hexagonal shape, use the comp(). when using the side selection, pass on the comp.index as an argument to the next rule. this will give each facade an index with which you then can work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the code :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ did not check the code, just writing it down here ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try this, then adapt the indices below in the code ( currently 0 and 1 )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Lot --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; extrude(3)
&amp;nbsp;&amp;nbsp;&amp;nbsp; comp(f) {top : Roof. | side : Facade(comp.index) | all : NIL}

Facade( myIndex ) --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; case myIndex == 0 :
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; color(1,0,0)
&amp;nbsp;&amp;nbsp;&amp;nbsp; case myIndex == 1 :
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; color(1,0,0)
&amp;nbsp;&amp;nbsp;&amp;nbsp; else :
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; color(0,1,0)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;after this test works, continue in your own code. ok ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:53:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/breaking-up-facades-into-sections/m-p/524983#M7155</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2021-12-11T22:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking up facades into sections</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/breaking-up-facades-into-sections/m-p/524984#M7156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey thanks that code works amazingly! I just need to determine which Index number the walls are that I want doors in and apply the code to it but replacing colour with texture etc! Very nice! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 20:43:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/breaking-up-facades-into-sections/m-p/524984#M7156</guid>
      <dc:creator>JoanneO_Brien</dc:creator>
      <dc:date>2012-07-05T20:43:09Z</dc:date>
    </item>
  </channel>
</rss>

