<?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 Shape perimeter in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/shape-perimeter/m-p/71693#M1007</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to calculate shepe/block perimeter?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Oct 2013 12:36:40 GMT</pubDate>
    <dc:creator>AleksandarLalovic</dc:creator>
    <dc:date>2013-10-07T12:36:40Z</dc:date>
    <item>
      <title>Shape perimeter</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/shape-perimeter/m-p/71693#M1007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to calculate shepe/block perimeter?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 12:36:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/shape-perimeter/m-p/71693#M1007</guid>
      <dc:creator>AleksandarLalovic</dc:creator>
      <dc:date>2013-10-07T12:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Shape perimeter</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/shape-perimeter/m-p/71694#M1008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In CGA, you can use geometry.area() to find a shape's area.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check the docs on how to precisely use it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you report the area and select all shapes, the Reports tab in the Inspector will show the sum of all areas.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But since CGA operates only on single shapes, CGA has no way to 'collect' reported data of it's neighbor shapes in the same Block.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Python scripting may give you a few workflow options though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 16:09:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/shape-perimeter/m-p/71694#M1008</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-10-07T16:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Shape perimeter</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/shape-perimeter/m-p/71695#M1009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Im not talking about area. Im trying to find shepe perimeter/circumference, sum of the length of all edges.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 14:04:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/shape-perimeter/m-p/71695#M1009</guid>
      <dc:creator>AleksandarLalovic</dc:creator>
      <dc:date>2013-10-09T14:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Shape perimeter</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/shape-perimeter/m-p/71696#M1010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;that's currently not directly queryable with a function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I recommend :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;comp(e) { all : report("edgeLength", scope.sx) NIL }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ok ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;m.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 13:24:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/shape-perimeter/m-p/71696#M1010</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-10-10T13:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Shape perimeter</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/shape-perimeter/m-p/71697#M1011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For the reporting this works just fine but if i would like to use this value in a rule file i guess its not possible?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 13:59:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/shape-perimeter/m-p/71697#M1011</guid>
      <dc:creator>AleksandarLalovic</dc:creator>
      <dc:date>2013-10-10T13:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Shape perimeter</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/shape-perimeter/m-p/71698#M1012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there's one more, much more complex way to obtain directly in CGA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;otherwise, I'd recommend to use Python to quickly take the reports and write them as an object attribute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;let me know if you're interested in the complex way. I'll need to adapt an other existing rule for this, will take a bit of time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 16:52:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/shape-perimeter/m-p/71698#M1012</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-10-11T16:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Shape perimeter</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/shape-perimeter/m-p/71699#M1013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;after thinking for a minute, you could do something like this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;@Hidden attr perimeter = 0&amp;nbsp; Lot --&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; extrude(1) &amp;nbsp;&amp;nbsp;&amp;nbsp; set (perimeter, geometry.area() - 2 * (geometry.area(bottom)) &amp;nbsp;&amp;nbsp;&amp;nbsp; comp(f) { bottom : reverseNormals Gotcha. }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the idea of course being that you take the full surface after the extrusion, subtracting the bottom and top area, then dividing again by the extrusion height.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 16:58:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/shape-perimeter/m-p/71699#M1013</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-10-11T16:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Shape perimeter</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/shape-perimeter/m-p/71700#M1014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Wow, great. Didnt see that coming. Realy nice trick with the area. Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 08:16:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/shape-perimeter/m-p/71700#M1014</guid>
      <dc:creator>AleksandarLalovic</dc:creator>
      <dc:date>2013-10-15T08:16:46Z</dc:date>
    </item>
  </channel>
</rss>

