<?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 about window split cga in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/about-window-split-cga/m-p/689336#M9073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;always thank you for good anwser&lt;/P&gt;&lt;P&gt;i am beginner in cityengine&lt;/P&gt;&lt;P&gt;i would like to split window like attached image&lt;/P&gt;&lt;P&gt;can you&amp;nbsp; make sample cga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Dec 2019 14:11:27 GMT</pubDate>
    <dc:creator>chojeo</dc:creator>
    <dc:date>2019-12-09T14:11:27Z</dc:date>
    <item>
      <title>about window split cga</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/about-window-split-cga/m-p/689336#M9073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;always thank you for good anwser&lt;/P&gt;&lt;P&gt;i am beginner in cityengine&lt;/P&gt;&lt;P&gt;i would like to split window like attached image&lt;/P&gt;&lt;P&gt;can you&amp;nbsp; make sample cga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2019 14:11:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/about-window-split-cga/m-p/689336#M9073</guid>
      <dc:creator>chojeo</dc:creator>
      <dc:date>2019-12-09T14:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: about window split cga</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/about-window-split-cga/m-p/689337#M9074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Facade A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The code assumes that the scope of your facade is aligned such that &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;x&lt;/SPAN&gt; is along the width and &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;y&lt;/SPAN&gt; is along the height.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;// Define facade width and height here or set to scope.sx or scope.sy
const facade_width = scope.sx
const facade_height = 9

const door_width = 0.3*facade_width
const door_height = 0.7*(facade_height/3)
const window_width = 0.7*facade_width
const window_height = 0.5*(facade_height/3)


Facade --&amp;gt;
	split(y) { ~1: Floor1
			 | ~1: Floor2
			 | ~1: Floor3. }
	
Floor1 --&amp;gt;
	split(y) { door_height: split(x) { ~1: Wall
									 | door_width: Door
									 | ~1: Wall
									 | door_width: Door
									 | ~1: Wall }
			 | ~1: Wall }
		
Floor2 --&amp;gt;
	split(x) { ~1: Wall
			 | window_width: WindowTile
			 | ~1: Wall }
			 
WindowTile --&amp;gt;
	split(y) { ~1: Wall
			 | window_height: Window
			 | ~1: Wall }
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&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;/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;&lt;STRONG&gt;Facade B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Modify the Facade A code above by changing the definition of &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;window_width&lt;/SPAN&gt; and the &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Floor2&lt;/SPAN&gt; rule as follows.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;const window_width = 0.2*scope.sx

Floor2 --&amp;gt;
	split(x) { ~1: Wall
			 | window_width: WindowTile
			 | ~1: Wall
			 | window_width: WindowTile
			 | ~1: Wall }
&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:00:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/about-window-split-cga/m-p/689337#M9074</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2021-12-12T05:00:37Z</dc:date>
    </item>
  </channel>
</rss>

