<?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: Applying a split across a building regardless of previous splits in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/applying-a-split-across-a-building-regardless-of/m-p/747251#M9824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm that's what I wanted to avoid.. but I guess it's probably better to just rewrite the script and do the coloring like in your example. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Oct 2014 19:28:26 GMT</pubDate>
    <dc:creator>LR</dc:creator>
    <dc:date>2014-10-19T19:28:26Z</dc:date>
    <item>
      <title>Applying a split across a building regardless of previous splits</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/applying-a-split-across-a-building-regardless-of/m-p/747248#M9821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a building using vertical splits because some elements (the entrance part) didn't line up with the rest and to keep the number of splits to a minimum. However, now I'd like to split the building horizontally to color its floors separately. Is that possible while retaining the current structure? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a photoshop mockup of what I'm trying to do:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="mock.jpg" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/21610_mock.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 15:47:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/applying-a-split-across-a-building-regardless-of/m-p/747248#M9821</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2014-10-16T15:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Applying a split across a building regardless of previous splits</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/applying-a-split-across-a-building-regardless-of/m-p/747249#M9822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Here's one way to do it:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;version "2014.1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attr floorCount = 4&lt;/P&gt;&lt;P&gt;attr floorHeight = 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shape --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; extrude(floorCount * floorHeight)&lt;/P&gt;&lt;P&gt;&amp;nbsp; SplitIntoFloors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SplitIntoFloors --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; split(y) {floorHeight: Floor}*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Floor --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; comp(f) {side: Facade(split.index)}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Facade(floorIndex) --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; case floorIndex == 0: color(1,0,0) FacadeVerticalSplits(true)&lt;/P&gt;&lt;P&gt;&amp;nbsp; else: color(0,1,0) FacadeVerticalSplits(false)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FacadeVerticalSplits(isGroundFloor) --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; split(x) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; '0.4: VerticalSplittingLeft |&lt;/P&gt;&lt;P&gt;&amp;nbsp; '0.2: EntranceOrWindows(isGroundFloor) |&lt;/P&gt;&lt;P&gt;&amp;nbsp; '0.4: VerticalSplittingRight&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EntranceOrWindows(isGroundFloor) --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; case isGroundFloor: Entrance&lt;/P&gt;&lt;P&gt;&amp;nbsp; else: EntranceWindows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Entrance --&amp;gt; YourOldCodeHereForGroundFloor.&lt;/P&gt;&lt;P&gt;EntranceWindows --&amp;gt; YourOldCodeHereForWindowsAboveEntrance.&lt;/P&gt;&lt;P&gt;VerticalSplittingLeft&amp;nbsp; --&amp;gt; YourOldCodeHereForLeftSide. &lt;/P&gt;&lt;P&gt;VerticalSplittingRight --&amp;gt; YourOldCodeHereForRightSide.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 18:49:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/applying-a-split-across-a-building-regardless-of/m-p/747249#M9822</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-10-16T18:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Applying a split across a building regardless of previous splits</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/applying-a-split-across-a-building-regardless-of/m-p/747250#M9823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But if you do it that way, you must be OK with the vertical section over the entrance being slightly different as in below image:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="mock2.jpg" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/21626_mock2.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 18:56:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/applying-a-split-across-a-building-regardless-of/m-p/747250#M9823</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-10-16T18:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Applying a split across a building regardless of previous splits</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/applying-a-split-across-a-building-regardless-of/m-p/747251#M9824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm that's what I wanted to avoid.. but I guess it's probably better to just rewrite the script and do the coloring like in your example. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Oct 2014 19:28:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/applying-a-split-across-a-building-regardless-of/m-p/747251#M9824</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2014-10-19T19:28:26Z</dc:date>
    </item>
  </channel>
</rss>

