<?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: Split function, without a two walls on each side of the first and last window! in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/split-function-without-a-two-walls-on-each-side-of/m-p/122627#M1655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got it, it???s working for me now. I provide the rule if any other is struggling with the same understanding issue as I did.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe it could be done easier, so don???t hesitate with any comments. I???m here to learn &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;/**&amp;nbsp; * File:&amp;nbsp;&amp;nbsp;&amp;nbsp; Test 2.cga&amp;nbsp; * Created: 27 May 2014 07:43:52 GMT&amp;nbsp; * Author:&amp;nbsp; KennethL&amp;nbsp; */&amp;nbsp; version "2013.1"&amp;nbsp; attr height = 100 attr groundfloor_height = 10 attr floor_height = 10 attr top_ledge = 2 attr first_tile = mid_tiles - wall attr mid_tiles = 5 attr last_tile = mid_tiles attr top_legde2 =2 attr wall = 0.5 attr window = mid_tiles - wall&amp;nbsp; attr nSymmetries = 2&amp;nbsp; Building --&amp;gt; comp(f){ front : Frontfacade | side : SideFacade | top: Roof} @Location(903,-265) Frontfacade --&amp;gt; split(y){ groundfloor_height : Floor(split.index)&amp;nbsp; | groundfloor_height : Floor(split.index)&amp;nbsp; | {~floor_height : Floor(split.index)}*&amp;nbsp; | floor_height ++ top_ledge : Floor(999)}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Location(1810,-9) Floor(floorindex) --&amp;gt; case floorindex == 0 :&amp;nbsp; TileRow(floorindex) case floorindex == 999 :&amp;nbsp; split(y){ TileRow(floorindex) | ~top_ledge : TopLedge | top_legde2 : TopLedge2}&amp;nbsp;&amp;nbsp; case floorindex == 1 :&amp;nbsp; split(y){ TileRow(floorindex) | top_ledge : TopLedge} else :&amp;nbsp; split(y){ TileRow(floorindex) | top_ledge : TopLedge}&amp;nbsp;&amp;nbsp; @Location(2680,398) TileRow(floorIndex) --&amp;gt; case floorIndex == 0: split(x){ ~mid_tiles: Tile(-1) }*&amp;nbsp; case floorIndex == 1: split(x){ ~mid_tiles: Tile(-1) }*&amp;nbsp;&amp;nbsp; else: split(x){ ~mid_tiles: First_tile | {~mid_tiles : Mid_tiles }*|~mid_tiles: Last_tile } @Location(3419,840) First_tile --&amp;gt; split (x) {mid_tiles-wall : Shape} Shape&amp;nbsp; @Location(3446,1128) Last_tile --&amp;gt; split (x) {wall : Shape} Shape&amp;nbsp;&amp;nbsp; @Location(3432,989) Mid_tiles --&amp;gt; split (x) {wall : Shape | mid_tiles - wall - wall : Shape} Shape &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 May 2014 08:51:02 GMT</pubDate>
    <dc:creator>KennethLindhardt</dc:creator>
    <dc:date>2014-05-28T08:51:02Z</dc:date>
    <item>
      <title>Split function, without a two walls on each side of the first and last window!</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/split-function-without-a-two-walls-on-each-side-of/m-p/122625#M1653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I do not think that this is too complicated, but I seem to fail to get it to work like I would like. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I got my floors indexed into ground floor, first floor, sub floors and top floor. All of the floors needs to have needs to have tiles with ~4 in width. But the sub floors also need to have their tiles split once more,&amp;nbsp; ~0.5 on the right side, and ~0.5 on the left side. But in the beginning and in the end, I do not want it to start with a ???sub split??? if this doesn???t make any sense, please have a look at the picture &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; So what Im not able to do is to make the first and the last tile, to have only a split on one of the sites!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]34081[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]34082[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 13:16:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/split-function-without-a-two-walls-on-each-side-of/m-p/122625#M1653</guid>
      <dc:creator>KennethLindhardt</dc:creator>
      <dc:date>2014-05-26T13:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Split function, without a two walls on each side of the first and last window!</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/split-function-without-a-two-walls-on-each-side-of/m-p/122626#M1654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: kelin84&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe I need to describe this a little more.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So each floor needs to have a an (x) split at the exact same place, be course I every tile needs to be aligned on top of each other. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Seperatly I can create a floor index and a tile index, but I fail to put those two together, so that everything not equal floorindex 0 &amp;amp;&amp;amp; florindex == 1 should use my subdivided tile. For some reason the floorindex seems to get corrupted, when I try to use it again, after I have used my tileindex. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is probably pretty easy; I guess I just am missing a link in my understanding. I have tried to put it together in many ways, but I think that this code is where I got closest to what I want, but still not at all where I want to be.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;/**
 * File:&amp;nbsp;&amp;nbsp;&amp;nbsp; Test 2.cga
 * Created: 27 May 2014 07:43:52 GMT
 * Author:&amp;nbsp; KennethL
 */

version "2013.1"

attr height = 100
attr groundfloor_height = 10
attr floor_height = 10
attr top_ledge = 2
attr first_tile = mid_tiles
attr mid_tiles = 5
attr last_tile = mid_tiles
attr top_legde2 =5
attr wall = 0.5
attr window = mid_tiles - wall 


Building --&amp;gt;
comp(f){ front : Frontfacade | side : SideFacade | top: Roof}
Frontfacade --&amp;gt;
split(y){ groundfloor_height : Floor(split.index)
| groundfloor_height : Floor(split.index)
| {~floor_height : Floor(split.index)}*
| floor_height ++ top_ledge : Floor(999)} 


split(x){ ~first_tile : Tile(split.index)
| {~mid_tiles : Tile(split.index) }*
| ~last_tile : Tile(999) }




Floor(floorindex) --&amp;gt;
case floorindex == 0 :
 Ground_floor
case floorindex == 999 :
 split(y){ Subfloor(floorindex) | ~top_ledge : TopLedge | top_legde2 : TopLedge2} 
case floorindex == 1 :
 split(y){ Ground_floor | top_ledge : TopLedge}
else :
 split(y){ Subfloor(floorindex) | top_ledge : TopLedge}

Ground_floor --&amp;gt; Shape
 



Tile(tileindex)--&amp;gt; 

case tileindex == 0 : window_left(split.index) 
case tileindex == 999 : window_right
 else : window_mid


window_left(floorindex) --&amp;gt; 
case floorindex == 0 : split(x) { window : Window_side}
else: NIL
Shape&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:03:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/split-function-without-a-two-walls-on-each-side-of/m-p/122626#M1654</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T07:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Split function, without a two walls on each side of the first and last window!</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/split-function-without-a-two-walls-on-each-side-of/m-p/122627#M1655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got it, it???s working for me now. I provide the rule if any other is struggling with the same understanding issue as I did.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe it could be done easier, so don???t hesitate with any comments. I???m here to learn &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;/**&amp;nbsp; * File:&amp;nbsp;&amp;nbsp;&amp;nbsp; Test 2.cga&amp;nbsp; * Created: 27 May 2014 07:43:52 GMT&amp;nbsp; * Author:&amp;nbsp; KennethL&amp;nbsp; */&amp;nbsp; version "2013.1"&amp;nbsp; attr height = 100 attr groundfloor_height = 10 attr floor_height = 10 attr top_ledge = 2 attr first_tile = mid_tiles - wall attr mid_tiles = 5 attr last_tile = mid_tiles attr top_legde2 =2 attr wall = 0.5 attr window = mid_tiles - wall&amp;nbsp; attr nSymmetries = 2&amp;nbsp; Building --&amp;gt; comp(f){ front : Frontfacade | side : SideFacade | top: Roof} @Location(903,-265) Frontfacade --&amp;gt; split(y){ groundfloor_height : Floor(split.index)&amp;nbsp; | groundfloor_height : Floor(split.index)&amp;nbsp; | {~floor_height : Floor(split.index)}*&amp;nbsp; | floor_height ++ top_ledge : Floor(999)}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Location(1810,-9) Floor(floorindex) --&amp;gt; case floorindex == 0 :&amp;nbsp; TileRow(floorindex) case floorindex == 999 :&amp;nbsp; split(y){ TileRow(floorindex) | ~top_ledge : TopLedge | top_legde2 : TopLedge2}&amp;nbsp;&amp;nbsp; case floorindex == 1 :&amp;nbsp; split(y){ TileRow(floorindex) | top_ledge : TopLedge} else :&amp;nbsp; split(y){ TileRow(floorindex) | top_ledge : TopLedge}&amp;nbsp;&amp;nbsp; @Location(2680,398) TileRow(floorIndex) --&amp;gt; case floorIndex == 0: split(x){ ~mid_tiles: Tile(-1) }*&amp;nbsp; case floorIndex == 1: split(x){ ~mid_tiles: Tile(-1) }*&amp;nbsp;&amp;nbsp; else: split(x){ ~mid_tiles: First_tile | {~mid_tiles : Mid_tiles }*|~mid_tiles: Last_tile } @Location(3419,840) First_tile --&amp;gt; split (x) {mid_tiles-wall : Shape} Shape&amp;nbsp; @Location(3446,1128) Last_tile --&amp;gt; split (x) {wall : Shape} Shape&amp;nbsp;&amp;nbsp; @Location(3432,989) Mid_tiles --&amp;gt; split (x) {wall : Shape | mid_tiles - wall - wall : Shape} Shape &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 08:51:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/split-function-without-a-two-walls-on-each-side-of/m-p/122627#M1655</guid>
      <dc:creator>KennethLindhardt</dc:creator>
      <dc:date>2014-05-28T08:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Split function, without a two walls on each side of the first and last window!</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/split-function-without-a-two-walls-on-each-side-of/m-p/122628#M1656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: matthiasbuehler&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hehe .. thanks for sharing !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&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>Wed, 28 May 2014 13:33:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/split-function-without-a-two-walls-on-each-side-of/m-p/122628#M1656</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-05-28T13:33:41Z</dc:date>
    </item>
  </channel>
</rss>

