<?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: (Tutorial 16) How to clip the grid to the shape area ? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/tutorial-16-how-to-clip-the-grid-to-the-shape-area/m-p/176134#M2356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try to use occlusion queries. &amp;nbsp;Create a shape (needs to be closed shape with volume) that has the boundaries of your initial shape. &amp;nbsp;Then, before&amp;nbsp;creating each building, test for occlusion.&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 May 2017 12:32:45 GMT</pubDate>
    <dc:creator>CherylLau</dc:creator>
    <dc:date>2017-05-10T12:32:45Z</dc:date>
    <item>
      <title>(Tutorial 16) How to clip the grid to the shape area ?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/tutorial-16-how-to-clip-the-grid-to-the-shape-area/m-p/176133#M2355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;Hello everyone,&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;Wonder if there is a way to 'clip' the grid that is created by &lt;STRONG style="border: 0px; font-weight: bold; font-size: 15px;"&gt;Marker_Based_Building.cga&lt;/STRONG&gt; (rule by&amp;nbsp;Matthias Buehler) to just the shape that is being applied to ? Appreciate all the responses.&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;&lt;IMG alt="tut_16_Ref" class="image-1 jive-image j-img-original" height="798" src="https://community.esri.com/legacyfs/online/349848_ref_tut16.png" style="border: 0px; font-weight: inherit; font-size: 15px; margin: 2px 0px 0px;" width="1424" /&gt;&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;------------------------------------------------------------ PART RULE BELOW -------------------------------&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;@StartRule&lt;BR /&gt;Building_Marker --&amp;gt;&lt;BR /&gt;alignScopeToAxes(y)&lt;BR /&gt;s(mainLength, 0, mainDepth)&lt;BR /&gt;center(xz)&lt;BR /&gt;primitiveCube()&lt;BR /&gt;comp(f) {bottom: alignScopeToAxes(y) reverseNormals CreateGrid | all : NIL&lt;BR /&gt;}&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;CreateGrid --&amp;gt;&amp;nbsp;&lt;BR /&gt;s(gridWidth * scope.sx + (gridWidth - 1) * gridDistWidth, 0, gridDepth * scope.sz + (gridDepth - 1) * gridDistDepth)&lt;BR /&gt;center(xz)&lt;BR /&gt;GridSplitX&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;GridSplitX --&amp;gt;&lt;BR /&gt;split(x) {{mainLength : GridSplitZ | ~gridDistWidth : NIL}* | mainLength : GridSplitZ }&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;GridSplitZ --&amp;gt;&lt;BR /&gt;split(z) {{mainDepth : FootprintBase | ~gridDistDepth : NIL}* | mainDepth : FootprintBase }&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;FootprintBase --&amp;gt;&lt;BR /&gt;r(scopeCenter, 0, buildingRotation, 0)&lt;BR /&gt;FootprintForm&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;FootprintForm --&amp;gt;&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;case footprintForm == "Rectangle":&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;mirrorScope(footprintMirrorWidth, false, footprintMirrorDepth)&lt;/P&gt;&lt;P style="border: 0px; font-weight: normal; font-size: 15px;"&gt;SHAPE_BASED_BUILDING.Footprint &amp;nbsp; (footprint rules)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 15:50:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/tutorial-16-how-to-clip-the-grid-to-the-shape-area/m-p/176133#M2355</guid>
      <dc:creator>KushanDave</dc:creator>
      <dc:date>2017-05-05T15:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: (Tutorial 16) How to clip the grid to the shape area ?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/tutorial-16-how-to-clip-the-grid-to-the-shape-area/m-p/176134#M2356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try to use occlusion queries. &amp;nbsp;Create a shape (needs to be closed shape with volume) that has the boundaries of your initial shape. &amp;nbsp;Then, before&amp;nbsp;creating each building, test for occlusion.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 12:32:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/tutorial-16-how-to-clip-the-grid-to-the-shape-area/m-p/176134#M2356</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2017-05-10T12:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: (Tutorial 16) How to clip the grid to the shape area ?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/tutorial-16-how-to-clip-the-grid-to-the-shape-area/m-p/176135#M2357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Cheryl.&amp;nbsp;That seemed to do the trick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 May 2017 23:52:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/tutorial-16-how-to-clip-the-grid-to-the-shape-area/m-p/176135#M2357</guid>
      <dc:creator>KushanDave</dc:creator>
      <dc:date>2017-05-21T23:52:49Z</dc:date>
    </item>
  </channel>
</rss>

