<?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: Gable Roofs in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/gable-roofs/m-p/496446#M6741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CityEngine was not designed to reconstruct 'as is' scenarios as closely as possible. So in any way, if you need to do this, use the shape modeling tools.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nevertheless, yes, you can also make a shapeL() on top of the gound floor, just to create the roof.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For this, do something like :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ Code incomplete ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;attr angle = 360
attr mirrorX = False
attr mirrorZ = False

Lot --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; extrude(5)
&amp;nbsp;&amp;nbsp;&amp;nbsp; comp(f) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alignScopeToAxes(y)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mirrorScope(mirrorX, False, mirrorZ)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rotateScope(0,angle,0)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shapeL(..)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | side : Facade.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ok ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 21:49:58 GMT</pubDate>
    <dc:creator>MatthiasBuehler1</dc:creator>
    <dc:date>2021-12-11T21:49:58Z</dc:date>
    <item>
      <title>Gable Roofs</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/gable-roofs/m-p/496443#M6738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everybody.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to generate some gable roofs here using the roofGable operation. The building footprints are static shapes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It happens that some of them are not being generated as required. I attached an image below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Corner buildings 4, 5, 8, as well front building 3 got some "unexpected" results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Building 3: The ridge appears to follow the longest distance between facades (in this case, building width &amp;lt; building depth)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Building 5: The footprint shape is rectangular. There's no way to know where to put a roof valley (?).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Buildings 4 and 8: It doesn't recognize the L shape...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The question is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to input ridge (or eave) orientation to the roof?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to put eaves along the whole border of the block...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 10:30:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/gable-roofs/m-p/496443#M6738</guid>
      <dc:creator>SóniaIldefonso</dc:creator>
      <dc:date>2013-09-18T10:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Gable Roofs</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/gable-roofs/m-p/496444#M6739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Improving the roof() operations are a high priority on our wishlist - currently, not all is possible. This shall be improved in future !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd recommend :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;manual way:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- for now, model special roof forms with the 'Polygonal Shape Creation' tool (tutorial 14)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;procedural way:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- check the additional orientation flag in the roof CGA documentation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- case 5 : add a shapeL() on the rectangle first on the footprint&lt;/SPAN&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;m.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 11:27:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/gable-roofs/m-p/496444#M6739</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-09-19T11:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Gable Roofs</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/gable-roofs/m-p/496445#M6740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks again for the answer Matthias.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you've already noticed, I'm trying to reproduce an existing downtown which is very specific and strictly designed... and I'd like to do it by using rule-based modeling as much as possible so that I don't lose data. This is my main goal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;About case 5:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You told me to add a ShapeL() to the footprint before I extrude it, right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to get footprint dimensions (width / depth) and use them as shapeL parameters as it follows?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;----------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr footprint_depth = ? //based on the footprint, variable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr footprint_width = ? //based on the footprint, variable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lot --&amp;gt; shapeL(footprint_depth - 0.1, footprint_width - 0.1) {shape : BuildingFootprint | remainder : NIL}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;----------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*(-0.1) to minimize the void (not built).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;May I add this operation only to the roof in order to maintain the floors (area)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How to control the L shape orientation (right / left corner)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to solve the other cases, I'll try to check the combining polygonal modeling with rules process...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I'll come back with more questions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for the "silly" questions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 12:28:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/gable-roofs/m-p/496445#M6740</guid>
      <dc:creator>SóniaIldefonso</dc:creator>
      <dc:date>2013-09-23T12:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Gable Roofs</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/gable-roofs/m-p/496446#M6741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CityEngine was not designed to reconstruct 'as is' scenarios as closely as possible. So in any way, if you need to do this, use the shape modeling tools.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nevertheless, yes, you can also make a shapeL() on top of the gound floor, just to create the roof.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For this, do something like :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ Code incomplete ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;attr angle = 360
attr mirrorX = False
attr mirrorZ = False

Lot --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; extrude(5)
&amp;nbsp;&amp;nbsp;&amp;nbsp; comp(f) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alignScopeToAxes(y)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mirrorScope(mirrorX, False, mirrorZ)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rotateScope(0,angle,0)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shapeL(..)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | side : Facade.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ok ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:49:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/gable-roofs/m-p/496446#M6741</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2021-12-11T21:49:58Z</dc:date>
    </item>
  </channel>
</rss>

