<?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 Tutorial 7-Facade modeling in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/tutorial-7-facade-modeling/m-p/497325#M6754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Tutorial 7-Facade modeling, it is shown that the picture has ground floor with only doors. But what if the ground floor has both windows and doors. How to write the CGA script? Please help me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also see the attached file for the 'code' and facade picture.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@StartRule&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lot --&amp;gt; s(15,15,15) extrude(height) Building&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# we only need the front face for this example&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Building --&amp;gt; comp(f) { front : Frontfacade | side : Frontfacade}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# the front facade is subdivided into one front groundfloor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# and upper floors&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Frontfacade --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;split(y){ groundfloor_height : Floor(split.index) // Groundfloor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| floor_height : Floor(split.index) // First Floor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| floor_height : Floor(split.index) // Second Floor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| floor_height : Floor(split.index) // Third Floor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| floor_height : Floor(split.index) // Mid Floors&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| floor_height : Floor(999) } // Top Floor, indexed with 999&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Floor(floorindex)--&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;case floorindex == 0:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Subfloor(floorindex)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;case floorindex == 1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;split(y) {~1 : Subfloor(floorindex) Balcony | 0.5: TopLedge}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;case floorindex == 4:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;split(y) {~1 : Subfloor(floorindex) Balcony}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;split(y){1 : BottomLedge(floorindex) | ~1 : Subfloor(floorindex) | 0.5 : TopLedge}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Subfloor(floorindex)--&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;split(x) {0.5 : Wall(1) | {~tile_width:Tile(floorindex)}* | 0.5:Wall(1)}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tile(floorindex)--&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;case floorindex == 0 :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;split(x){~1: SolidWall | door_width : DoorTile | ~1: SolidWall}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;split(x){~1: Wall(getWalltype(floorindex)) | window_width : WindowTile(floorindex) | ~1 : Wall(getWalltype(floorindex))}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jan 2014 00:14:08 GMT</pubDate>
    <dc:creator>Divya_UdayanJ</dc:creator>
    <dc:date>2014-01-02T00:14:08Z</dc:date>
    <item>
      <title>Tutorial 7-Facade modeling</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/tutorial-7-facade-modeling/m-p/497325#M6754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Tutorial 7-Facade modeling, it is shown that the picture has ground floor with only doors. But what if the ground floor has both windows and doors. How to write the CGA script? Please help me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also see the attached file for the 'code' and facade picture.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@StartRule&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lot --&amp;gt; s(15,15,15) extrude(height) Building&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# we only need the front face for this example&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Building --&amp;gt; comp(f) { front : Frontfacade | side : Frontfacade}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# the front facade is subdivided into one front groundfloor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# and upper floors&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Frontfacade --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;split(y){ groundfloor_height : Floor(split.index) // Groundfloor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| floor_height : Floor(split.index) // First Floor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| floor_height : Floor(split.index) // Second Floor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| floor_height : Floor(split.index) // Third Floor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| floor_height : Floor(split.index) // Mid Floors&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| floor_height : Floor(999) } // Top Floor, indexed with 999&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Floor(floorindex)--&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;case floorindex == 0:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Subfloor(floorindex)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;case floorindex == 1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;split(y) {~1 : Subfloor(floorindex) Balcony | 0.5: TopLedge}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;case floorindex == 4:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;split(y) {~1 : Subfloor(floorindex) Balcony}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;split(y){1 : BottomLedge(floorindex) | ~1 : Subfloor(floorindex) | 0.5 : TopLedge}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Subfloor(floorindex)--&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;split(x) {0.5 : Wall(1) | {~tile_width:Tile(floorindex)}* | 0.5:Wall(1)}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tile(floorindex)--&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;case floorindex == 0 :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;split(x){~1: SolidWall | door_width : DoorTile | ~1: SolidWall}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;split(x){~1: Wall(getWalltype(floorindex)) | window_width : WindowTile(floorindex) | ~1 : Wall(getWalltype(floorindex))}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 00:14:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/tutorial-7-facade-modeling/m-p/497325#M6754</guid>
      <dc:creator>Divya_UdayanJ</dc:creator>
      <dc:date>2014-01-02T00:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Tutorial 7-Facade modeling</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/tutorial-7-facade-modeling/m-p/497326#M6755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, the theory is very simple to this problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you have split all floors, you split off the door on the first floor. then, the 'rest' shapes or that split plus all upper floor facades all are forwarded to the same rule that creates the windows ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe it's a good practice to code this from scratch instead of trying to understand existing code.. That can sometimes be a bit tedious.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does that help a bit so far ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 10:21:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/tutorial-7-facade-modeling/m-p/497326#M6755</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2014-01-03T10:21:10Z</dc:date>
    </item>
  </channel>
</rss>

