<?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: Creating Gable Roofs in City Engine 2014.1? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493836#M6697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might also try reduceGeometry(edges, 0.1) to reduce the vertex count - the 0.1 part... look in the help manual because I can't remember the exact details of the tolerance parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2015 15:11:16 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2015-04-28T15:11:16Z</dc:date>
    <item>
      <title>Creating Gable Roofs in City Engine 2014.1?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493832#M6693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can a create gable roofs in City Engine 2014.1 so that they are created along the Z axis instead of X axis?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 02:35:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493832#M6693</guid>
      <dc:creator>jeffreymorris1</dc:creator>
      <dc:date>2014-12-19T02:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Gable Roofs in City Engine 2014.1?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493833#M6694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gable always follows longest axis, or we would simply use rotateScope(). I tried that first. Here is how I did this (rule is attached):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;version "2014.1"

&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;attr switchAxis = true&lt;/SPAN&gt;
attr gableAngle = 45

@Hidden
attr originalScopeX = 0
@Hidden
attr originalScopeZ = 0

@StartRule
RoofGableSwitchAxis --&amp;gt;
&amp;nbsp; # Gable always follows longest axis, or we would simply use rotateScope().
&amp;nbsp; case switchAxis:
&amp;nbsp;&amp;nbsp;&amp;nbsp; roofGable(gableAngle)
&amp;nbsp;&amp;nbsp;&amp;nbsp; set(originalScopeX, scope.sx)
&amp;nbsp;&amp;nbsp;&amp;nbsp; set(originalScopeZ, scope.sz)
&amp;nbsp;&amp;nbsp;&amp;nbsp; rotate(rel, scope, 0,90,0)
&amp;nbsp;&amp;nbsp;&amp;nbsp; s(originalScopeZ,'scope.sx/originalScopeZ,originalScopeX)
&amp;nbsp;&amp;nbsp;&amp;nbsp; center(xz)
&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp; roofGable(gableAngle)

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:43:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493833#M6694</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T21:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Gable Roofs in City Engine 2014.1?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493834#M6695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the rule that you wrote but I got weird roofs. The top of the roof should be even. The shapes came from Open Street Map OSM file.&lt;IMG alt="cityengine.PNG" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/42266_cityengine.PNG" style="width: 620px; height: 438px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2014 01:50:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493834#M6695</guid>
      <dc:creator>jeffreymorris1</dc:creator>
      <dc:date>2014-12-20T01:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Gable Roofs in City Engine 2014.1?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493835#M6696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may have unnecessary points in your footprints - simplify them to just 4 vertices and I think you should get better results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 06:46:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493835#M6696</guid>
      <dc:creator>BenLeslie1</dc:creator>
      <dc:date>2015-04-28T06:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Gable Roofs in City Engine 2014.1?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493836#M6697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might also try reduceGeometry(edges, 0.1) to reduce the vertex count - the 0.1 part... look in the help manual because I can't remember the exact details of the tolerance parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 15:11:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493836#M6697</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-04-28T15:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Gable Roofs in City Engine 2014.1?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493837#M6698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I simplify the footprints to just 4 vertices each before extruding them?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 01:28:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493837#M6698</guid>
      <dc:creator>jeffreymorris1</dc:creator>
      <dc:date>2015-04-29T01:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Gable Roofs in City Engine 2014.1?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493838#M6699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try innerRect -&amp;nbsp; you call innerRect inside a mostly square shape, and it gives you exactly 4 vertices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, ignore tip about ​&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;reduceGeometry(edges, 0.1)&amp;nbsp; I gave up above. I meant cleanupGeometry.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 01:33:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493838#M6699</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-04-29T01:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Gable Roofs in City Engine 2014.1?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493839#M6700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I combine two or more shapes into one shape?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 10:29:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493839#M6700</guid>
      <dc:creator>jeffreymorris1</dc:creator>
      <dc:date>2015-04-29T10:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Gable Roofs in City Engine 2014.1?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493840#M6701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hold shift while selecting multiple shapes, then look in the Shapes menu for Combine Shapes. You can then apply one rule to the combined shape. This shape combination will not merge coplanar faces or any kind of unioning type stuff.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 23:02:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493840#M6701</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-04-29T23:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Gable Roofs in City Engine 2014.1?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493841#M6702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't like how InnerRect works. There's Cleanup Shape in the Shapes menu that takes combined shapes and modifies them so that they become one shape. I thought that Combine Shape and Cleanup Shape work but one house still gives me hip roof instead of gable roof on one end. City Engine doesn't let me take a group of shapes like the one above the house with weird roofs and change them into one rectangle. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 00:59:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493841#M6702</guid>
      <dc:creator>jeffreymorris1</dc:creator>
      <dc:date>2015-04-30T00:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Gable Roofs in City Engine 2014.1?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493842#M6703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can force shapes to be rectangular by inserting the built in cube into your scope, and then using either the top or bottom face to replace the starting geometry that you are not getting the right roofs from.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 01:09:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493842#M6703</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-04-30T01:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Gable Roofs in City Engine 2014.1?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493843#M6704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed, InnerRect is a blunt tool.&amp;nbsp; Threre's a process called CleanupShapes under the Shapes menu - not really familiar with what it does but otherwise I'd look at processing your footprints in ArcMap or some other programme in order to optimise your footprints.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 06:42:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493843#M6704</guid>
      <dc:creator>BenLeslie1</dc:creator>
      <dc:date>2015-04-30T06:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Gable Roofs in City Engine 2014.1?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493844#M6705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I import OSM files into ArcMap? How do I install Data Interoperability extension into trial version of ArcMap? The ArcGIS Administrator program said that extension is authorized but not installed. How do I insert the built-in cube into my scope in CityEngine?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 11:37:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493844#M6705</guid>
      <dc:creator>jeffreymorris1</dc:creator>
      <dc:date>2015-04-30T11:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Gable Roofs in City Engine 2014.1?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493845#M6706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd recommend finding an area of GeoNet that is more taylored to these questions - I stick them in 'New to GIS' when I have this type of question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Completely agree that much of Esri's documentation, error/help messages are seemingly willfully difficult.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 12:06:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493845#M6706</guid>
      <dc:creator>BenLeslie1</dc:creator>
      <dc:date>2015-04-30T12:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Gable Roofs in City Engine 2014.1?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493846#M6707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hahaha, they might be difficult, but I assure you it is not willfull. The people here are quite nice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 15:16:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-gable-roofs-in-city-engine-2014-1/m-p/493846#M6707</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-05-01T15:16:56Z</dc:date>
    </item>
  </channel>
</rss>

