<?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 (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/40769#M560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wonder if there is a way to 'clip' the grid that is created by &lt;STRONG&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&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="tut_16_Ref" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/349843_ref_tut16.png" style="width: 620px; height: 348px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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&gt;&lt;/P&gt;&lt;P&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&gt;&lt;/P&gt;&lt;P&gt;GridSplitX --&amp;gt;&lt;BR /&gt; split(x) {{mainLength : GridSplitZ | ~gridDistWidth : NIL}* | mainLength : GridSplitZ }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GridSplitZ --&amp;gt;&lt;BR /&gt; split(z) {{mainDepth : FootprintBase | ~gridDistDepth : NIL}* | mainDepth : FootprintBase }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FootprintBase --&amp;gt;&lt;BR /&gt; r(scopeCenter, 0, buildingRotation, 0)&lt;BR /&gt; FootprintForm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FootprintForm --&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case footprintForm == "Rectangle":&lt;/P&gt;&lt;P&gt;mirrorScope(footprintMirrorWidth, false, footprintMirrorDepth)&lt;/P&gt;&lt;P&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:45:24 GMT</pubDate>
    <dc:creator>KushanDave</dc:creator>
    <dc:date>2017-05-05T15:45:24Z</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/40769#M560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wonder if there is a way to 'clip' the grid that is created by &lt;STRONG&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&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="tut_16_Ref" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/349843_ref_tut16.png" style="width: 620px; height: 348px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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&gt;&lt;/P&gt;&lt;P&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&gt;&lt;/P&gt;&lt;P&gt;GridSplitX --&amp;gt;&lt;BR /&gt; split(x) {{mainLength : GridSplitZ | ~gridDistWidth : NIL}* | mainLength : GridSplitZ }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GridSplitZ --&amp;gt;&lt;BR /&gt; split(z) {{mainDepth : FootprintBase | ~gridDistDepth : NIL}* | mainDepth : FootprintBase }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FootprintBase --&amp;gt;&lt;BR /&gt; r(scopeCenter, 0, buildingRotation, 0)&lt;BR /&gt; FootprintForm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FootprintForm --&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case footprintForm == "Rectangle":&lt;/P&gt;&lt;P&gt;mirrorScope(footprintMirrorWidth, false, footprintMirrorDepth)&lt;/P&gt;&lt;P&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:45:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/tutorial-16-how-to-clip-the-grid-to-the-shape-area/m-p/40769#M560</guid>
      <dc:creator>KushanDave</dc:creator>
      <dc:date>2017-05-05T15:45:24Z</dc:date>
    </item>
  </channel>
</rss>

