<?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: Intersecting shapes in one floor shape in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/intersecting-shapes-in-one-floor-shape/m-p/262046#M3456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got no idea... Buehler!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But thanks for sharing this, since it illuminates the convexify CGA operation. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2014 20:01:52 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2014-10-16T20:01:52Z</dc:date>
    <item>
      <title>Intersecting shapes in one floor shape</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/intersecting-shapes-in-one-floor-shape/m-p/262045#M3455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two buildings that are intersecting each other, but one floor shape. I "solved" this by first convexifying, then extruding the two main shapes, then extruding the side facade of the smaller shape and then giving the structures roofs. However this does not seem very elegant. Can it be done in another way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is basically that the smallest part is occupied by&amp;nbsp; both buildings and the geometry of them should remain simple to build a roof easily. The current roof works, but a more complex one would be problematic. Could I at least merge the green and pink parts? I tried innerRect but this obviously only works for one of the buildings. "Filling up" the leftover shape's missing corner also doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cga:&lt;/P&gt;&lt;PRE __default_attr="css" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14134690761368826" jivemacro_uid="_14134690761368826"&gt;
&lt;P&gt;version "2014.0"&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;attr maxLength = scope.sx&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Lot --&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; convexify(maxLength)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; //comp(f){all:randomcolor}&lt;/P&gt;
&lt;P&gt;&amp;nbsp; comp(f){&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 0: green |&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 1:red |&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 2:blue&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;randomcolor --&amp;gt; color(rand,rand,rand)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;green --&amp;gt; color("#00ff00")&lt;/P&gt;
&lt;P&gt;&amp;nbsp; extrude(10)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; comp(f){&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 4:ExtrudeMe |&lt;/P&gt;
&lt;P&gt;&amp;nbsp; top: Roof |&lt;/P&gt;
&lt;P&gt;&amp;nbsp; side: Undefined&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;blue --&amp;gt; color("#0000FF")&lt;/P&gt;
&lt;P&gt;&amp;nbsp; extrude(10)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; comp(f){&lt;/P&gt;
&lt;P&gt;&amp;nbsp; top: Roof |&lt;/P&gt;
&lt;P&gt;&amp;nbsp; side: Undefined&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;ExtrudeMe --&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; color(1,0,1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; extrude(3.7420570850372314) //scope.sx from dark green part&lt;/P&gt;
&lt;P&gt;&amp;nbsp; comp(f){&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 4:RoofPink |&lt;/P&gt;
&lt;P&gt;&amp;nbsp; top: Undefined |&lt;/P&gt;
&lt;P&gt;&amp;nbsp; side: Undefined&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Roof --&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; roofGable(30,0,0,false)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;RoofPink --&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; roofGable(30,0,0,false,90)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; print ("hello")&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screenshots for clarity:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot__0000_Layer-3.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/21514_Screenshot__0000_Layer-3.png" style="width: 620px; height: 385px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot__0001_Layer-2.png" class="jive-image image-2" src="https://community.esri.com/legacyfs/online/21608_Screenshot__0001_Layer-2.png" style="width: 620px; height: 385px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pink: side-extrusion of the green building&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot__0002_Layer-1.png" class="jive-image image-3" src="https://community.esri.com/legacyfs/online/21609_Screenshot__0002_Layer-1.png" style="width: 620px; height: 385px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 14:21:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/intersecting-shapes-in-one-floor-shape/m-p/262045#M3455</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2014-10-16T14:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Intersecting shapes in one floor shape</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/intersecting-shapes-in-one-floor-shape/m-p/262046#M3456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got no idea... Buehler!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But thanks for sharing this, since it illuminates the convexify CGA operation. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 20:01:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/intersecting-shapes-in-one-floor-shape/m-p/262046#M3456</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-10-16T20:01:52Z</dc:date>
    </item>
  </channel>
</rss>

