<?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>idea CGA: Merging shapes from different trees in ArcGIS CityEngine Ideas</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-ideas/cga-merging-shapes-from-different-trees/idi-p/933197</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe CGA coding would be much more accesible, if you could merge shapes from different shape trees.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example when making rules for roofs and the building footprint has a complex or nonrectangular shape, you have to get an overview (usually&amp;nbsp;via different split.indexes or occlusion queries) to know if the shape is a part of the central roof or marks the end of the roof. (This operation usually also requires trigonometric gymnastics, which are beyond the abilities of&amp;nbsp;some of my colleagues in the architectural profession)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I figure this might&amp;nbsp;be somewhat similar to the label function and could look somewhat like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Footprint&amp;nbsp;--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;primitiveQuad(width, length)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;SplitFootprint&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SplitFootprint --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;split(x) { '0.5: r(0, split.index * rotationAttr, 0) RaiseBuilding }*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RaiseBuilding --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;extrude(height)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;comp(f) { vertical: Facade. | top: Label("roof")&amp;nbsp; RoofConstruction | bottom: NIL }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RoofConstruction --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;mergeShapes("roof")&amp;nbsp;&amp;nbsp;&amp;nbsp;# &amp;lt;&amp;lt;&amp;lt; proposed new function, merges all shapes labeled "roof" into a new large shape&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;cleanupGeometry(all, 0.1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;roofHip(roofHeight)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Apr 2018 09:06:43 GMT</pubDate>
    <dc:creator>Jonas_BromandFuchs</dc:creator>
    <dc:date>2018-04-25T09:06:43Z</dc:date>
    <item>
      <title>CGA: Merging shapes from different trees</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-ideas/cga-merging-shapes-from-different-trees/idi-p/933197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe CGA coding would be much more accesible, if you could merge shapes from different shape trees.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example when making rules for roofs and the building footprint has a complex or nonrectangular shape, you have to get an overview (usually&amp;nbsp;via different split.indexes or occlusion queries) to know if the shape is a part of the central roof or marks the end of the roof. (This operation usually also requires trigonometric gymnastics, which are beyond the abilities of&amp;nbsp;some of my colleagues in the architectural profession)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I figure this might&amp;nbsp;be somewhat similar to the label function and could look somewhat like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Footprint&amp;nbsp;--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;primitiveQuad(width, length)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;SplitFootprint&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SplitFootprint --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;split(x) { '0.5: r(0, split.index * rotationAttr, 0) RaiseBuilding }*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RaiseBuilding --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;extrude(height)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;comp(f) { vertical: Facade. | top: Label("roof")&amp;nbsp; RoofConstruction | bottom: NIL }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RoofConstruction --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;mergeShapes("roof")&amp;nbsp;&amp;nbsp;&amp;nbsp;# &amp;lt;&amp;lt;&amp;lt; proposed new function, merges all shapes labeled "roof" into a new large shape&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;cleanupGeometry(all, 0.1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;roofHip(roofHeight)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 09:06:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-ideas/cga-merging-shapes-from-different-trees/idi-p/933197</guid>
      <dc:creator>Jonas_BromandFuchs</dc:creator>
      <dc:date>2018-04-25T09:06:43Z</dc:date>
    </item>
  </channel>
</rss>

