<?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 Why do the buildings I created through CGA scripts different then manually created shapes? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/why-do-the-buildings-i-created-through-cga-scripts/m-p/276014#M3836</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was working on learning how to tackle "stepped" building shapes when I ran across the difference in the make-up of building shapes created from a CGA script (or one of the "Building-from-Footprint" scripts and the buildings that I created manually. The script generated buildings seem to be created from the "bottom-up" while the manually created shapes are "top down"&amp;nbsp; I've included an example of the two methods side-by-side.In the "Building-from-Footprint" method it's like I'm building the building shapes upside down. This has all kinds of ramifications.&lt;IMG alt="CE-buildingorientation.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/53263_CE-buildingorientation.png" style="width: 620px; height: 449px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Jan 2015 15:31:22 GMT</pubDate>
    <dc:creator>RobertJenkins1</dc:creator>
    <dc:date>2015-01-21T15:31:22Z</dc:date>
    <item>
      <title>Why do the buildings I created through CGA scripts different then manually created shapes?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/why-do-the-buildings-i-created-through-cga-scripts/m-p/276014#M3836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was working on learning how to tackle "stepped" building shapes when I ran across the difference in the make-up of building shapes created from a CGA script (or one of the "Building-from-Footprint" scripts and the buildings that I created manually. The script generated buildings seem to be created from the "bottom-up" while the manually created shapes are "top down"&amp;nbsp; I've included an example of the two methods side-by-side.In the "Building-from-Footprint" method it's like I'm building the building shapes upside down. This has all kinds of ramifications.&lt;IMG alt="CE-buildingorientation.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/53263_CE-buildingorientation.png" style="width: 620px; height: 449px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 15:31:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/why-do-the-buildings-i-created-through-cga-scripts/m-p/276014#M3836</guid>
      <dc:creator>RobertJenkins1</dc:creator>
      <dc:date>2015-01-21T15:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why do the buildings I created through CGA scripts different then manually created shapes?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/why-do-the-buildings-i-created-through-cga-scripts/m-p/276015#M3837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Going to take a shot in the dark, because I am not sure I understand the question. From first glance it looks like you did not comp(f) the top of the footprint, or perhaps orientation in your comp got changed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we see the script in question? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 17:02:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/why-do-the-buildings-i-created-through-cga-scripts/m-p/276015#M3837</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2015-01-21T17:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why do the buildings I created through CGA scripts different then manually created shapes?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/why-do-the-buildings-i-created-through-cga-scripts/m-p/276016#M3838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the script.&lt;/P&gt;&lt;P&gt;It's generally the "Building from Footprint" CGA script that is included in the ESRI.lib.&lt;/P&gt;&lt;P&gt;I deleted the " top : Roof " part of the comp(f) so you could see the inside of the shape.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;const dirt_tex&amp;nbsp;&amp;nbsp;&amp;nbsp; = "assets/3D_City_Design_Assets/Material_Library/DirtMap/Dirt Map 1.jpg"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attr groundfloor_height&amp;nbsp;&amp;nbsp;&amp;nbsp; = 10&lt;/P&gt;&lt;P&gt;attr OverwriteColor = "#ffffff"&lt;/P&gt;&lt;P&gt;import Roof_Textures:"/ESRI.lib/rules/Roofs/Roof_Textures.cga"&lt;/P&gt;&lt;P&gt;attr wallTexture = "assets/3D_City_Design_Assets/Material_Library/WallTextures/wall_concrete_4.jpg"&lt;/P&gt;&lt;P&gt;attr wallTexture2 = "assets/3D_City_Design_Assets/Material_Library/WallTextures/Brick Red No Mortar Running Bond.jpg"&lt;/P&gt;&lt;P&gt;//import facade : "Facade_StClairWestside5.cga"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Hidden&amp;nbsp; &lt;/P&gt;&lt;P&gt;attr originalScopeY = 0&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@StartRule&amp;nbsp; &lt;/P&gt;&lt;P&gt;SlantedBuildingFootprint --&amp;gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; # Align scope to have y axis up.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; alignScopeToAxes(y)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; # Save this shape's height.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; set(originalScopeY, scope.sy)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; # Flatten footprint by scaling y to zero.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; s('1,0,'1)&amp;nbsp; &lt;/P&gt;&lt;P&gt; // extrude(originalScopeY)&amp;nbsp; &lt;/P&gt;&lt;P&gt; // color(1,0,0)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; # Make it transparent for demo purpose.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; //set(material.opacity, 0.5)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; # At this point the top or bottom can be used for floors (basement and upper floors. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# For use on non-flat building footprint,&amp;nbsp; &lt;/P&gt;&lt;P&gt;# so project footprint to terrain using Align Shapes to Terrain (Project All option).&amp;nbsp; &lt;/P&gt;&lt;P&gt;//Building --&amp;gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;extrude (10)&amp;nbsp; &lt;/P&gt;&lt;P&gt;comp(f) {front : Facade | side : Side }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;#! SIZE 30.0 27.26128&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Location(1218,496)&lt;/P&gt;&lt;P&gt;Facade --&amp;gt;&lt;/P&gt;&lt;P&gt;setupProjection(0, scope.xy, 1.5, 1, 1) &lt;/P&gt;&lt;P&gt;&amp;nbsp; setupProjection(2, scope.xy, '1, '1) &lt;/P&gt;&lt;P&gt; facade.Facade&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Side --&amp;gt;&lt;/P&gt;&lt;P&gt;facade.Facade&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roof --&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Roof_Textures.Generate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*************************************************************************************&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 22:58:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/why-do-the-buildings-i-created-through-cga-scripts/m-p/276016#M3838</guid>
      <dc:creator>RobertJenkins1</dc:creator>
      <dc:date>2015-01-21T22:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why do the buildings I created through CGA scripts different then manually created shapes?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/why-do-the-buildings-i-created-through-cga-scripts/m-p/276017#M3839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nope. You lost me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.63636302948px;"&gt;CGA will always start geometry creation process relative to the base shape, thus if the shape is on the ground, it will be a bottom up process because it is building it from the base shape. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is it you want to achieve with CGA that you are doing now with manually orienting and modeling shapes? What needs to change for you to accomplish your goals? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 23:11:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/why-do-the-buildings-i-created-through-cga-scripts/m-p/276017#M3839</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2015-01-21T23:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why do the buildings I created through CGA scripts different then manually created shapes?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/why-do-the-buildings-i-created-through-cga-scripts/m-p/276018#M3840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this will help me explain:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The manually built shape has the handles, the shape is built from the "bottom up". What you would normally see if you extrude a building shape.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 1&lt;/P&gt;&lt;P&gt;&lt;IMG alt="CE-manuallybuilt.png" class="jive-image image-2" src="https://community.esri.com/legacyfs/online/53394_CE-manuallybuilt.png" style="width: 620px; height: 370px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 2 we're looking at the same two shapes only from below the y-axis (or underneath). Here we see the handle is showing that the shape on the right is upside down.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="CE-scriptbuilt.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/53393_CE-scriptbuilt.png" style="width: 620px; height: 272px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that make it clearer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 23:30:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/why-do-the-buildings-i-created-through-cga-scripts/m-p/276018#M3840</guid>
      <dc:creator>RobertJenkins1</dc:creator>
      <dc:date>2015-01-21T23:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why do the buildings I created through CGA scripts different then manually created shapes?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/why-do-the-buildings-i-created-through-cga-scripts/m-p/276019#M3841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to clarify you are trying to represent setbacks for buildings procedurally?&lt;/P&gt;&lt;P&gt;Similar to this image?&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="53408" alt="Skyexposure.jpg" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/53408_Skyexposure.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 23:50:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/why-do-the-buildings-i-created-through-cga-scripts/m-p/276019#M3841</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2015-01-21T23:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why do the buildings I created through CGA scripts different then manually created shapes?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/why-do-the-buildings-i-created-through-cga-scripts/m-p/276020#M3842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I'm trying to understand how the shapes are constructed. Let me go to something less complex, the building shapes aren't really that important. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a simpler example:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="CE-script-manual1.png" class="jive-image image-2" src="https://community.esri.com/legacyfs/online/53417_CE-script-manual1.png" style="width: 620px; height: 388px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="CE-script-manual2.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/53395_CE-script-manual2.png" style="width: 620px; height: 374px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The shapes are constructed in completely different ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the handles from Building 1, the extrusion for Building 1 will go in the opposite direction of Building 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 02:10:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/why-do-the-buildings-i-created-through-cga-scripts/m-p/276020#M3842</guid>
      <dc:creator>RobertJenkins1</dc:creator>
      <dc:date>2015-01-22T02:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why do the buildings I created through CGA scripts different then manually created shapes?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/why-do-the-buildings-i-created-through-cga-scripts/m-p/276021#M3843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The handle on the bottom you're picking up is the original shape (building footprint).&amp;nbsp; CGA doesn't change the original shape it simply builds on top of it, using it as a seed.&amp;nbsp; Use the toggle shapes button and it will disappear (F11).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Theres a tool to "Convert Models to Shapes" if you wish to modify your CGA models using handles.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 08:11:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/why-do-the-buildings-i-created-through-cga-scripts/m-p/276021#M3843</guid>
      <dc:creator>BenLeslie1</dc:creator>
      <dc:date>2015-01-23T08:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why do the buildings I created through CGA scripts different then manually created shapes?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/why-do-the-buildings-i-created-through-cga-scripts/m-p/276022#M3844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I wonder why does the vertice numbers increase in shape building2? I created a rectangular shape. It has 4 vertices and I note them coordinate. And when I extruded this shape by using CGA rule, it occured 24 vertices and first coordinate of&amp;nbsp; 4 vertices is a little bit different. I extrude this shape by handle (by using 'rectangular shape creation' tool) it has 8 vertice and first 4 vertice is not different so its coordinate true for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 09:14:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/why-do-the-buildings-i-created-through-cga-scripts/m-p/276022#M3844</guid>
      <dc:creator>SebahatT_K</dc:creator>
      <dc:date>2015-01-23T09:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why do the buildings I created through CGA scripts different then manually created shapes?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/why-do-the-buildings-i-created-through-cga-scripts/m-p/276023#M3845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds like....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The CGA creates a box from 6 squares, each with 4 vertex.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The shape creation tool makes a proper box that is a coherent box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On export (collada - i haven't looked at other formats) there are options for "vertex precision" and "merge vertices within precision" - I guess that playing with these can help reduce vertex count.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 09:41:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/why-do-the-buildings-i-created-through-cga-scripts/m-p/276023#M3845</guid>
      <dc:creator>BenLeslie1</dc:creator>
      <dc:date>2015-01-23T09:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why do the buildings I created through CGA scripts different then manually created shapes?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/why-do-the-buildings-i-created-through-cga-scripts/m-p/276024#M3846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I'm getting stuck on the difference between a model and a shape. When I manually extrude a building shape, the shape is changed to whatever I make it. Using the CGA scripts, the extruded "shape" is actually a MODEL. If I toggle the Model on/off, the CGA created buildings turn on and off. , This means when I create a building using the CGA method on my building "walls" they are Model structures not shapes.&lt;/P&gt;&lt;P&gt;The "Building from Footprint" creates models. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 16:15:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/why-do-the-buildings-i-created-through-cga-scripts/m-p/276024#M3846</guid>
      <dc:creator>RobertJenkins1</dc:creator>
      <dc:date>2015-01-23T16:15:35Z</dc:date>
    </item>
  </channel>
</rss>

