<?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 Creating a U or L shape on another shape in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-a-u-or-l-shape-on-another-shape/m-p/327756#M4500</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the following code for creating a U shape, I'm attempting to essentially extrude a cube, and add a uShape on top using comp(f).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached two images, if I use my start rule as "RoofTier" it creates a ushape no problem. If I use my start rule as Lot, it will extrude my lower part of the building, but the u shape is incorrect. This also happens to L shapes. Note I'm just using the "Null" rule in this case to make my floor/ceiling planes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any insight? I know from images I've seen this is very possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;version "2012.1"

attr myFrontDepth = 5
attr myRightWidth = 5
attr myLeftWidth = 5


Lot --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; extrude(20)
 comp(f) { top : Roof | all : Null}
&amp;nbsp; 
Roof --&amp;gt;
 Null
 RoofTier

RoofTier --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shapeU(myFrontDepth,myRightWidth,myLeftWidth) { shape : Footprint | remainder: NIL }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
Footprint --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; extrude(20)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 15:31:45 GMT</pubDate>
    <dc:creator>DavidKenley</dc:creator>
    <dc:date>2021-12-11T15:31:45Z</dc:date>
    <item>
      <title>Creating a U or L shape on another shape</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-a-u-or-l-shape-on-another-shape/m-p/327756#M4500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the following code for creating a U shape, I'm attempting to essentially extrude a cube, and add a uShape on top using comp(f).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached two images, if I use my start rule as "RoofTier" it creates a ushape no problem. If I use my start rule as Lot, it will extrude my lower part of the building, but the u shape is incorrect. This also happens to L shapes. Note I'm just using the "Null" rule in this case to make my floor/ceiling planes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any insight? I know from images I've seen this is very possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;version "2012.1"

attr myFrontDepth = 5
attr myRightWidth = 5
attr myLeftWidth = 5


Lot --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; extrude(20)
 comp(f) { top : Roof | all : Null}
&amp;nbsp; 
Roof --&amp;gt;
 Null
 RoofTier

RoofTier --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shapeU(myFrontDepth,myRightWidth,myLeftWidth) { shape : Footprint | remainder: NIL }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
Footprint --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; extrude(20)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:31:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-a-u-or-l-shape-on-another-shape/m-p/327756#M4500</guid>
      <dc:creator>DavidKenley</dc:creator>
      <dc:date>2021-12-11T15:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a U or L shape on another shape</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-a-u-or-l-shape-on-another-shape/m-p/327757#M4501</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;Hi !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following operations need a 'yUp scope' :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;setback(), shapeL(),shapeO(),shapeU().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;a convention is that the scope is oriented zUp after a comp(f), thus the scope needs to be realigned. Otherwise, one experiences that one dimension of those operations to look 'incorrect'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;solution, e.g. :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Roof --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; alignScopeToGeometry(yUp, 0)
&amp;nbsp;&amp;nbsp;&amp;nbsp; shapeL(..)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The scope is a very very important concept in CGA, so make sure you understand this and always work with the 'Inspect Model Mode' and the 'Model Hierarchy'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, check this video :&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/44417-CGA-Understanding-the-concept-of-the-scope" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.arcgis.com/threads/44417-CGA-Understanding-the-concept-of-the-scope&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok 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>Sat, 11 Dec 2021 15:31:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-a-u-or-l-shape-on-another-shape/m-p/327757#M4501</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T15:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a U or L shape on another shape</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-a-u-or-l-shape-on-another-shape/m-p/1092907#M10275</link>
      <description>&lt;P&gt;Thank you! Just ran into this problem trying to make a typical "five over two" podium building.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 20:40:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-a-u-or-l-shape-on-another-shape/m-p/1092907#M10275</guid>
      <dc:creator>MakersMakers</dc:creator>
      <dc:date>2021-08-26T20:40:57Z</dc:date>
    </item>
  </channel>
</rss>

