<?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 hangar roof in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-a-hangar-roof/m-p/1216895#M10678</link>
    <description>&lt;P&gt;How to create a hangar-type roof for buildings in CityEngine?&lt;/P&gt;&lt;P&gt;It is not built-in to primitive roof types, so do I have to start with rotating and splitting a cylinder?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2022 11:46:56 GMT</pubDate>
    <dc:creator>AndresKasekamp</dc:creator>
    <dc:date>2022-09-28T11:46:56Z</dc:date>
    <item>
      <title>Creating a hangar roof</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-a-hangar-roof/m-p/1216895#M10678</link>
      <description>&lt;P&gt;How to create a hangar-type roof for buildings in CityEngine?&lt;/P&gt;&lt;P&gt;It is not built-in to primitive roof types, so do I have to start with rotating and splitting a cylinder?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 11:46:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-a-hangar-roof/m-p/1216895#M10678</guid>
      <dc:creator>AndresKasekamp</dc:creator>
      <dc:date>2022-09-28T11:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a hangar roof</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/creating-a-hangar-roof/m-p/1218258#M10683</link>
      <description>&lt;P&gt;Here is some code that does what you suggested (rotate and split a cylinder).&amp;nbsp; It assumes the building footprint is rectangular.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;@Order(1)
@Range(min=0, max=20)
attr eave_height = 10

@Order(2)
@Range(min=0, max=20)
attr roof_height = 5

@Order(3)
@Range(min=3, max=32, stepsize=1)
attr num_hangar_divisions = 8

Lot --&amp;gt;
	extrude(eave_height) Mass.
	comp(f) { top: HangarRoof }
	
HangarRoof --&amp;gt;
	alignScopeToGeometry(zUp, any, longest)
	rotateScope(0, 0, 90)
	primitiveCylinder(2*num_hangar_divisions)
	s('1, '1, 2*roof_height)
	t(0, 0, '-0.5)
	split(z) { ~1: NIL | ~1: HangarRoof. }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CherylLau_1-1664805472125.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/52720i41369648AF018F90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CherylLau_1-1664805472125.png" alt="CherylLau_1-1664805472125.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 13:59:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/creating-a-hangar-roof/m-p/1218258#M10683</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2022-10-03T13:59:30Z</dc:date>
    </item>
  </channel>
</rss>

