<?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: How to size a shape based on world location? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-size-a-shape-based-on-world-location/m-p/62678#M876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Knowledge about neighboring shapes in CityEngine is really difficult and limited. &amp;nbsp;It's currently limited to the occlusion queries in CGA. &amp;nbsp;If you figure out a way to do it with Python, it's probably the only way to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Mar 2017 16:36:18 GMT</pubDate>
    <dc:creator>CherylLau</dc:creator>
    <dc:date>2017-03-21T16:36:18Z</dc:date>
    <item>
      <title>How to size a shape based on world location?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-size-a-shape-based-on-world-location/m-p/62673#M871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am creating a number of shapes that represent buildings. &amp;nbsp;(See attached.)&lt;/P&gt;&lt;P&gt;I want to have&amp;nbsp;the buildings facing south to be shorter, and progressively taller as you go north.&lt;/P&gt;&lt;P&gt;How would I capture that using shape grammar? &amp;nbsp;Suggestions appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 05:04:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-size-a-shape-based-on-world-location/m-p/62673#M871</guid>
      <dc:creator>RobertYu</dc:creator>
      <dc:date>2017-03-17T05:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to size a shape based on world location?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-size-a-shape-based-on-world-location/m-p/62674#M872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you could use the&amp;nbsp;split.index, like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;@StartRule
Lot &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; alignScopeToAxes&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;y&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; split &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; Spli&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;

Spli &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; extrude&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;split&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;index&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:23:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-size-a-shape-based-on-world-location/m-p/62674#M872</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2021-12-10T22:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to size a shape based on world location?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-size-a-shape-based-on-world-location/m-p/62675#M873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is brilliant. &amp;nbsp;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 22:49:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-size-a-shape-based-on-world-location/m-p/62675#M873</guid>
      <dc:creator>RobertYu</dc:creator>
      <dc:date>2017-03-20T22:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to size a shape based on world location?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-size-a-shape-based-on-world-location/m-p/62676#M874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you need to know the positions of the buildings relative to the world, you could also convert scope coordinates to world coordinates using convert() (but&amp;nbsp;using split.index is easier).&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" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/func_convert.html"&gt;convert Function&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 15:25:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-size-a-shape-based-on-world-location/m-p/62676#M874</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2017-03-21T15:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to size a shape based on world location?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-size-a-shape-based-on-world-location/m-p/62677#M875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The next step is for the height of the buildings to respond to the sun location. &amp;nbsp;For example,&lt;/P&gt;&lt;P&gt;I want the buildings along the southern edge of the lot to be low, and the neighboring ones&lt;/P&gt;&lt;P&gt;progressively taller. &amp;nbsp;I haven't figured out how to get the heights of neighboring buildings, so I am&lt;/P&gt;&lt;P&gt;using the python export to get building locations and calculating the height using python.&lt;/P&gt;&lt;P&gt;Unfortunately, with Jython, I cannot import modules like "numpy" so it's becoming a bit&lt;/P&gt;&lt;P&gt;of kluge, doing a system call to a python script from within Cityengine's jython.&lt;/P&gt;&lt;P&gt;I feel I am approaching this problem the wrong way. &amp;nbsp;Suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 16:25:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-size-a-shape-based-on-world-location/m-p/62677#M875</guid>
      <dc:creator>RobertYu</dc:creator>
      <dc:date>2017-03-21T16:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to size a shape based on world location?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-size-a-shape-based-on-world-location/m-p/62678#M876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Knowledge about neighboring shapes in CityEngine is really difficult and limited. &amp;nbsp;It's currently limited to the occlusion queries in CGA. &amp;nbsp;If you figure out a way to do it with Python, it's probably the only way to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 16:36:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-size-a-shape-based-on-world-location/m-p/62678#M876</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2017-03-21T16:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to size a shape based on world location?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-size-a-shape-based-on-world-location/m-p/62679#M877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the information. &amp;nbsp;Perhaps I can import the JTS geometry library into CityEngine to extend the jython functionality.&lt;/P&gt;&lt;P&gt;Update: Getting JTS into cityengine worked, using this article&amp;nbsp;&lt;A class="link-titled" href="http://pyright.blogspot.com/2011/03/jython-jts-geometry-library.html" title="http://pyright.blogspot.com/2011/03/jython-jts-geometry-library.html"&gt;pyright: jython + the JTS geometry library&lt;/A&gt;. &amp;nbsp;Note I had to be&lt;/P&gt;&lt;P&gt;careful with the coordinate system: &amp;nbsp;CityEngine -z is JTS y.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 17:00:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-size-a-shape-based-on-world-location/m-p/62679#M877</guid>
      <dc:creator>RobertYu</dc:creator>
      <dc:date>2017-03-21T17:00:49Z</dc:date>
    </item>
  </channel>
</rss>

