<?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: Aligning rooftops in CityEngine in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/aligning-rooftops-in-cityengine/m-p/448653#M6133</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This depends very much on the rules and use cases. Some ideas:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing to try is using the innerRect operation or inserting (and component splitting) a builtin:cube in case you work rectangular shapes. Then work with the index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or in case you know the direction (but not the index) you could scale it into the wanted direction (to make it long), apply the roofGable operation and scale it back. Means s('10,'1,'1) roofGable(angle,overhangX*10,overhangY) s('0.1,'1,'1).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Aug 2014 17:50:31 GMT</pubDate>
    <dc:creator>PascalMueller</dc:creator>
    <dc:date>2014-08-21T17:50:31Z</dc:date>
    <item>
      <title>Aligning rooftops in CityEngine</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/aligning-rooftops-in-cityengine/m-p/448650#M6130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on a building some neighborhood CGA rules and have come across this roofing dilemma. Sometimes my roof turns the wrong way and sometimes my welcome mat gets turned (see image):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="dilemma.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/3746_dilemma.png" style="width: 620px; height: 380px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both buildings were created using the same code. Is there a good way to ensure the same building form across all lots?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 15:35:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/aligning-rooftops-in-cityengine/m-p/448650#M6130</guid>
      <dc:creator>NathanBrigmon</dc:creator>
      <dc:date>2014-08-21T15:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning rooftops in CityEngine</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/aligning-rooftops-in-cityengine/m-p/448651#M6131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the roofGable tries to be smart and creates the cable along the longest side. We are aware of this problem. However there is already a solution that works in some use cases:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the full-fledge roofGable operation: &lt;/P&gt;&lt;P&gt;&amp;nbsp; roofGable(&lt;SPAN class="cga_opparam"&gt;angle, overhangX, overhangY, even, index&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last parameter index defines to which edge the ridge should be parallel. Thus, as long as the edge indexes stay constant in your models, this solution will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 16:56:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/aligning-rooftops-in-cityengine/m-p/448651#M6131</guid>
      <dc:creator>PascalMueller</dc:creator>
      <dc:date>2014-08-21T16:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning rooftops in CityEngine</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/aligning-rooftops-in-cityengine/m-p/448652#M6132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I've read about the index, but it still changes from model to model. So, I guess a better question is how do I keep the edge indexes constant or, at least, consistent?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 17:17:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/aligning-rooftops-in-cityengine/m-p/448652#M6132</guid>
      <dc:creator>NathanBrigmon</dc:creator>
      <dc:date>2014-08-21T17:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning rooftops in CityEngine</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/aligning-rooftops-in-cityengine/m-p/448653#M6133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This depends very much on the rules and use cases. Some ideas:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing to try is using the innerRect operation or inserting (and component splitting) a builtin:cube in case you work rectangular shapes. Then work with the index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or in case you know the direction (but not the index) you could scale it into the wanted direction (to make it long), apply the roofGable operation and scale it back. Means s('10,'1,'1) roofGable(angle,overhangX*10,overhangY) s('0.1,'1,'1).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 17:50:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/aligning-rooftops-in-cityengine/m-p/448653#M6133</guid>
      <dc:creator>PascalMueller</dc:creator>
      <dc:date>2014-08-21T17:50:31Z</dc:date>
    </item>
  </channel>
</rss>

