<?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: My buildings extent are not exactly rectangular (static shapes) in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/my-buildings-extent-are-not-exactly-rectangular/m-p/219978#M2893</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your 2nd example above, what is the shape you are starting with - its a little unclear. It looks like a mirror operation could work, unless your starting from the triangle on the left.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution you are looking for might be tweaking the the code in what you are trying to do. I've applied all types of rules to all types of building footprints from GIS data and I can assure you probably none of them were perfectly square. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Aug 2014 22:40:10 GMT</pubDate>
    <dc:creator>DevinLavigne</dc:creator>
    <dc:date>2014-08-16T22:40:10Z</dc:date>
    <item>
      <title>My buildings extent are not exactly rectangular (static shapes)</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/my-buildings-extent-are-not-exactly-rectangular/m-p/219975#M2890</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 imported some buildings extent interpreted by CE as static shapes, but they are not perfect rectangles.&lt;/P&gt;&lt;P&gt;So every time I attempt to use a split(x/z) or a comp(f) followed by some t(x,y,z), it is all messed up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Example using split :&lt;/EM&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="485" style="border: 1px solid rgb(198, 198, 198); width: 486px; height: 486px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: left; background-color: #f2f2f2; color: #505050; padding: 6px;" valign="middle"&gt;&lt;STRONG&gt;General view&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: left; background-color: #f2f2f2; color: #505050; padding: 6px;" valign="middle"&gt;&lt;STRONG&gt;CGA&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 6px;"&gt;&lt;IMG alt="" class="jive-image image-4" src="https://community.esri.com/legacyfs/online/3564_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/TD&gt;&lt;TD style="padding: 6px;"&gt;&lt;P&gt;version "2014.0"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@StartRule&lt;/P&gt;&lt;P&gt;A --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; extrude(6)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; split(x){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.5:P|&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ~1:M|&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.5:P}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; color("#FF80C0")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; color("#00FF00")&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Example using comp(f) :&lt;/EM&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="920" style="border: 1px solid rgb(198, 198, 198); height: 895px; width: 612px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: left; background-color: #f2f2f2; color: #505050; padding: 6px;" valign="middle"&gt;&lt;STRONG&gt;General view&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: left; background-color: #f2f2f2; color: #505050; padding: 6px;" valign="middle"&gt;&lt;STRONG&gt;Issues&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 6px;"&gt;&lt;P&gt;The yellow face is the "front" face of the ground floor, translated backward.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3560" alt="" class="jive-image image-1" height="440" src="https://community.esri.com/legacyfs/online/3560_pastedImage_0.png" style="height: 440px; width: 292.226px;" width="292" /&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 6px;"&gt;&lt;P&gt;On the left it overshoots&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3561" alt="" class="jive-image image-2" height="341" src="https://community.esri.com/legacyfs/online/3561_pastedImage_2.png" style="max-width: 1200px; max-height: 900px; width: 231px; height: 341.356px;" width="231" /&gt;&lt;/P&gt;&lt;P&gt;On the right it undershoots&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3562" alt="" class="jive-image image-3" height="446" src="https://community.esri.com/legacyfs/online/3562_pastedImage_3.png" style="max-width: 1200px; max-height: 900px; height: 446px; width: 230.787px;" width="231" /&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess my problem is that all my operations are based on the scope of my model, which is rectangular, but my shape, so my model, are not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be the best way to handle this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thibault&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Aug 2014 15:11:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/my-buildings-extent-are-not-exactly-rectangular/m-p/219975#M2890</guid>
      <dc:creator>ThibaultThibault</dc:creator>
      <dc:date>2014-08-16T15:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: My buildings extent are not exactly rectangular (static shapes)</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/my-buildings-extent-are-not-exactly-rectangular/m-p/219976#M2891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; innerRect&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Continue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the CGA docs if needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok ? &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Aug 2014 15:46:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/my-buildings-extent-are-not-exactly-rectangular/m-p/219976#M2891</guid>
      <dc:creator>MatthiasBuehler</dc:creator>
      <dc:date>2014-08-16T15:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: My buildings extent are not exactly rectangular (static shapes)</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/my-buildings-extent-are-not-exactly-rectangular/m-p/219977#M2892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;innerRect is a solution, but I would like not to modify the extent of my buildings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is maybe not possible, but I'd like to understand how to write a code similar to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;@StartRule&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A --&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; extrude(5)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; split(x){&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '0.5:B|&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '0.5:C}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and get something like :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.esri.com/legacyfs/online/3568_pastedImage_12.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;instead of :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/3567_pastedImage_9.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thibault&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Aug 2014 16:55:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/my-buildings-extent-are-not-exactly-rectangular/m-p/219977#M2892</guid>
      <dc:creator>ThibaultThibault</dc:creator>
      <dc:date>2014-08-16T16:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: My buildings extent are not exactly rectangular (static shapes)</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/my-buildings-extent-are-not-exactly-rectangular/m-p/219978#M2893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your 2nd example above, what is the shape you are starting with - its a little unclear. It looks like a mirror operation could work, unless your starting from the triangle on the left.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution you are looking for might be tweaking the the code in what you are trying to do. I've applied all types of rules to all types of building footprints from GIS data and I can assure you probably none of them were perfectly square. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Aug 2014 22:40:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/my-buildings-extent-are-not-exactly-rectangular/m-p/219978#M2893</guid>
      <dc:creator>DevinLavigne</dc:creator>
      <dc:date>2014-08-16T22:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: My buildings extent are not exactly rectangular (static shapes)</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/my-buildings-extent-are-not-exactly-rectangular/m-p/219979#M2894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The second example is maybe a little confusing. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="https://community.esri.com/servlet/JiveServlet/showImage/2-397489-3568/pastedImage_12.png" class="jive-image decoded" height="141" src="https://community.esri.com/legacyfs/online/3574_pastedImage_12.png" style="height: 141px; width: 142.741px;" width="143" /&gt;&lt;/P&gt;&lt;P&gt;The model (in dark grey) is manually edited, from a 2d shape (extent of a building, totally not rectangular), extruded, then I manually splited each faces to simulate what I am trying to achieve trough CGA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you go back to the first example part two, using comp(f), it shows what I am really trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Matt suggestion with "innerRect" solve the over/undershoot issues (see the yellow face) :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/3570_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;but the building doesn't follow the extent any more. And as I have a few of these buildings next to each other, I have gaps in between :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.esri.com/legacyfs/online/3571_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;instead of :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-3" src="https://community.esri.com/legacyfs/online/3572_pastedImage_3.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;but here I have the under/overshoot issues (it is the first example) :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-4" src="https://community.esri.com/legacyfs/online/3573_pastedImage_4.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Aug 2014 03:13:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/my-buildings-extent-are-not-exactly-rectangular/m-p/219979#M2894</guid>
      <dc:creator>ThibaultThibault</dc:creator>
      <dc:date>2014-08-17T03:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: My buildings extent are not exactly rectangular (static shapes)</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/my-buildings-extent-are-not-exactly-rectangular/m-p/219980#M2895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a simplified (and incomplete but working) version of the CGA code with which I am having trouble :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;version "2014.0"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attr HEIGHT = 0&lt;/P&gt;&lt;P&gt;attr groundFloorHeight = 4&lt;/P&gt;&lt;P&gt;attr floorHeight = 4&lt;/P&gt;&lt;P&gt;attr roofHeight = 1.5&lt;/P&gt;&lt;P&gt;attr groundFloorElevation = 0.20&lt;/P&gt;&lt;P&gt;attr corridorWidth = 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@StartRule&lt;/P&gt;&lt;P&gt;Building --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //innerRect&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; extrude(HEIGHT)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; split(y){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; groundFloorHeight:GroundFloor|&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; floorHeight:Floor|&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; roofHeight:Roof}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;GroundFloor --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; split(y){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; groundFloorElevation:GroundFloorElevation|&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ~1:GroundFloorBuilding}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GroundFloorBuilding --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; comp(f){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; front:GroundFloorFacade|&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left:GroundFloorBuildingLeft|&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; right:GroundFloorBuildingRight|&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; back:GroundFloorBuildingBack}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;GroundFloorFacade --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t(0,0,-corridorWidth)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; color("#FFFF00")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GroundFloorBuildingLeft --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; split(x){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ~1:GroundFloorBuildingSideWall|&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; corridorWidth:NIL}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GroundFloorBuildingRight --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; split(x){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; corridorWidth:NIL|&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ~1:GroundFloorBuildingSideWall}&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resulting model with over/undershoot issues on the yellow face:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" height="514" src="https://community.esri.com/legacyfs/online/3575_pastedImage_2.png" style="width: 292px; height: 513.808px;" width="292" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Aug 2014 03:18:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/my-buildings-extent-are-not-exactly-rectangular/m-p/219980#M2895</guid>
      <dc:creator>ThibaultThibault</dc:creator>
      <dc:date>2014-08-17T03:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: My buildings extent are not exactly rectangular (static shapes)</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/my-buildings-extent-are-not-exactly-rectangular/m-p/219981#M2896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see whats happening - your Transformation command &lt;CODE&gt;t(0,0,-corridorWidth)&lt;/CODE&gt;is shifting along the Z-axis of the shape - so straight back, but that "straight back" is not aligned with your object since - like we know - your shape isn't square.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have done with the code below is isolated your ground floor - then split off the corridorWidth with a NIL so its gone. The result should be what you are looking for - on the left...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3576" alt="" class="jive-image image-1" height="303" src="https://community.esri.com/legacyfs/online/3576_pastedImage_4.png" style="max-width: 1200px; max-height: 900px; float: none; width: 570px; height: 302.566px;" width="570" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/**&lt;/P&gt;&lt;P&gt;* File:&amp;nbsp;&amp;nbsp;&amp;nbsp; Thibault-NEW.cga&lt;/P&gt;&lt;P&gt;* Created: 17 Aug 2014 07:08:00 GMT&lt;/P&gt;&lt;P&gt;* Author:&amp;nbsp; devlavigne&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;version "2014.0"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attr HEIGHT = 9.5&lt;/P&gt;&lt;P&gt;attr groundFloorHeight = 4&lt;/P&gt;&lt;P&gt;attr floorHeight = 4&lt;/P&gt;&lt;P&gt;attr roofHeight = 1.5&lt;/P&gt;&lt;P&gt;attr groundFloorElevation = 0.20&lt;/P&gt;&lt;P&gt;attr corridorWidth = 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@StartRule&lt;/P&gt;&lt;P&gt;Building--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [extrude(groundFloorHeight) LowerMass]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UpperMass&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UpperMass--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t(0,groundFloorHeight,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; extrude(HEIGHT-groundFloorHeight)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; split(y){floorHeight:Floor | roofHeight:Roof}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LowerMass--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; split(y) {groundFloorElevation:GroundFloorElevation | GroundFloorBuilding}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GroundFloorBuilding--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; split(z) {GroundFloorFacades | corridorWidth:NIL }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GroundFloorFacades--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; comp(f){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; front:GroundFloorFacade|&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left:GroundFloorBuildingLeft|&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; right:GroundFloorBuildingRight|&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; back:GroundFloorBuildingBack}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GroundFloorFacade--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; color("#FFFF00")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Aug 2014 07:20:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/my-buildings-extent-are-not-exactly-rectangular/m-p/219981#M2896</guid>
      <dc:creator>DevinLavigne</dc:creator>
      <dc:date>2014-08-17T07:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: My buildings extent are not exactly rectangular (static shapes)</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/my-buildings-extent-are-not-exactly-rectangular/m-p/219982#M2897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Devin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution works well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isolating the lower mass (ground floor) of the building and applying a "split(z)" before a "comp(f)" is a good workaround (instead of a "comp(f)" and a split() on each facade one after another). It avoids over/undershooting and it is much simpler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thibault&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 06:44:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/my-buildings-extent-are-not-exactly-rectangular/m-p/219982#M2897</guid>
      <dc:creator>ThibaultThibault</dc:creator>
      <dc:date>2014-08-19T06:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: My buildings extent are not exactly rectangular (static shapes)</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/my-buildings-extent-are-not-exactly-rectangular/m-p/219983#M2898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good you guys found a solution !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 20:56:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/my-buildings-extent-are-not-exactly-rectangular/m-p/219983#M2898</guid>
      <dc:creator>MatthiasBuehler</dc:creator>
      <dc:date>2014-08-19T20:56:29Z</dc:date>
    </item>
  </channel>
</rss>

