<?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 Spatial relationships to trigger rule application? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/spatial-relationships-to-trigger-rule-application/m-p/2542#M23</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings! Am just beginning with CityEngine and am doing some CGA scripting to model up a shapefile. I'm finding that some rules might be best applied based on the spatial relationships between polygons (e.g. if distant, takes gable roof; if touching, takes shed roof), but am not finding spatial tools within CityEngine. Is there a set of relational tools somewhere? Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Mar 2017 15:42:51 GMT</pubDate>
    <dc:creator>JohnArnold1</dc:creator>
    <dc:date>2017-03-15T15:42:51Z</dc:date>
    <item>
      <title>Spatial relationships to trigger rule application?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/spatial-relationships-to-trigger-rule-application/m-p/2542#M23</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings! Am just beginning with CityEngine and am doing some CGA scripting to model up a shapefile. I'm finding that some rules might be best applied based on the spatial relationships between polygons (e.g. if distant, takes gable roof; if touching, takes shed roof), but am not finding spatial tools within CityEngine. Is there a set of relational tools somewhere? Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 15:42:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/spatial-relationships-to-trigger-rule-application/m-p/2542#M23</guid>
      <dc:creator>JohnArnold1</dc:creator>
      <dc:date>2017-03-15T15:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial relationships to trigger rule application?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/spatial-relationships-to-trigger-rule-application/m-p/2543#M24</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not entirely sure what you mean by spatial relationships, but in your example, I think you want some houses to have gable roofs and some to have shed roofs depending on their position in the world. &amp;nbsp;This you can accomplish&amp;nbsp;by converting scope coordinates to world coordinates with the convert() operation.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/func_convert.html?resultof=%22%73%63%6f%70%65%2e%73%78%22%20" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/func_convert.html?resultof=%22%73%63%6f%70%65%2e%73%78%22%20"&gt;convert Function&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, knowing information about other shapes is currently difficult and limited in CGA. &amp;nbsp;There are the occlusion queries that allow you to detect if something intersects/touches another shape, but currently, that's about it.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/func_occlusion.html?resultof=%22%74%6f%75%63%68%65%73%22%20%22%74%6f%75%63%68%22%20" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/func_occlusion.html?resultof=%22%74%6f%75%63%68%65%73%22%20%22%74%6f%75%63%68%22%20"&gt;Occlusion Query Functions&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Python may provide more options for this. &amp;nbsp;For example, it is possible to get a list of shapes in the scene and get their positions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 15:00:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/spatial-relationships-to-trigger-rule-application/m-p/2543#M24</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2017-03-21T15:00:19Z</dc:date>
    </item>
  </channel>
</rss>

