<?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 Trimming One Shape with Another in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/trimming-one-shape-with-another/m-p/1157871#M10450</link>
    <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping you can help me with a geometric challenge.&lt;/P&gt;&lt;P&gt;I've generated a rule that creates a rectangular tower of a specified width at the corner of a lot, and a shorter podium covering the rest.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In order to measure the width and length of the lot shape to get the tower, I've created a primitive Quad, which as you can see below extends beyond the footprint of the original, triangular lot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattOlsen_0-1648223297898.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/37357iE8C3E1A7903CCC4A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattOlsen_0-1648223297898.png" alt="MattOlsen_0-1648223297898.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;attr tower_width = 20&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Lot--&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;LotShape&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;alignScopeToGeometry(yUp, 0, 0)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;primitiveQuad(scope.sx, scope.sz)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Shape(scope.sx, scope.sz)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Shape(width, length) --&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;setback( comp(fe) { left = width - tower_width | back = length - tower_width } ) {all = Podium | remainder = Footprint}&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Footprint--&amp;gt; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;extrude(50)&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Podium--&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;extrude(10)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm wondering is if it's somehow possible to use the shape of the original lot to trim the parts of the tower and podium shapes that extend outside of the lot?&lt;/P&gt;&lt;P&gt;It would be great if CityEngine had boolean operations (intersect, union etc), similar to some popular 3D modelling software.. but hoping there is some other workaround.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattOlsen_1-1648223673815.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/37358iCCCEBA9008ABE5E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattOlsen_1-1648223673815.png" alt="MattOlsen_1-1648223673815.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Mar 2022 15:55:35 GMT</pubDate>
    <dc:creator>MattOlsen</dc:creator>
    <dc:date>2022-03-25T15:55:35Z</dc:date>
    <item>
      <title>Trimming One Shape with Another</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/trimming-one-shape-with-another/m-p/1157871#M10450</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping you can help me with a geometric challenge.&lt;/P&gt;&lt;P&gt;I've generated a rule that creates a rectangular tower of a specified width at the corner of a lot, and a shorter podium covering the rest.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In order to measure the width and length of the lot shape to get the tower, I've created a primitive Quad, which as you can see below extends beyond the footprint of the original, triangular lot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattOlsen_0-1648223297898.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/37357iE8C3E1A7903CCC4A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattOlsen_0-1648223297898.png" alt="MattOlsen_0-1648223297898.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;attr tower_width = 20&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Lot--&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;LotShape&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;alignScopeToGeometry(yUp, 0, 0)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;primitiveQuad(scope.sx, scope.sz)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Shape(scope.sx, scope.sz)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Shape(width, length) --&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;setback( comp(fe) { left = width - tower_width | back = length - tower_width } ) {all = Podium | remainder = Footprint}&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Footprint--&amp;gt; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;extrude(50)&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Podium--&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;extrude(10)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm wondering is if it's somehow possible to use the shape of the original lot to trim the parts of the tower and podium shapes that extend outside of the lot?&lt;/P&gt;&lt;P&gt;It would be great if CityEngine had boolean operations (intersect, union etc), similar to some popular 3D modelling software.. but hoping there is some other workaround.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattOlsen_1-1648223673815.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/37358iCCCEBA9008ABE5E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattOlsen_1-1648223673815.png" alt="MattOlsen_1-1648223673815.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 15:55:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/trimming-one-shape-with-another/m-p/1157871#M10450</guid>
      <dc:creator>MattOlsen</dc:creator>
      <dc:date>2022-03-25T15:55:35Z</dc:date>
    </item>
  </channel>
</rss>

