<?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 can I join the ledges? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-join-the-ledges/m-p/328761#M4527</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vertical trim planes are automatically added after a comp for exactly this use case.&amp;nbsp; It looks like the trim planes are already cutting your geometry in your screenshot since the ledges seem to be cut on an angle.&amp;nbsp; Try doing&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;center&lt;/SPAN&gt; before &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;primitiveCube&lt;/SPAN&gt;.&amp;nbsp; This is because when &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;primitiveCube&lt;/SPAN&gt; is inserted, the trim planes automatically cut the geometry,&amp;nbsp;so when the cube is inserted first, the geometry is first cut (when it is in the wrong position), and then the cut geometry is centered.&amp;nbsp; To see what I mean, remove the &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;center&lt;/SPAN&gt;, and see what you get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The help doc has a&amp;nbsp;trim plane example where the scope is centered, and then the cube is inserted:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://doc.arcgis.com/en/cityengine/latest/cga/cga-comp.htm#ESRI_SECTION3_F70EF8376EEB4E3AB4613C570BE9FFD9" title="https://doc.arcgis.com/en/cityengine/latest/cga/cga-comp.htm#ESRI_SECTION3_F70EF8376EEB4E3AB4613C570BE9FFD9" rel="nofollow noopener noreferrer" target="_blank"&gt;comp operation—CGA | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is some code which&amp;nbsp;relies on the trim planes from the &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;comp&lt;/SPAN&gt; to create&amp;nbsp;a ledge that meets in the corners.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;const ledge_height = 0.3
const ledge_depth = 0.1


Lot --&amp;gt;
     extrude(10) Mass.
     comp(f) { side: Facade }
	
Facade --&amp;gt;
     split(y) { ~1: Floor.
              | ledge_height: Ledge
              | ~1: Floor. }

Ledge --&amp;gt;
     s(scope.sx + 2*ledge_depth, '1, ledge_depth)
     center(x)
     primitiveCube
&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;/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;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/483347_trim_ledge.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 15:34:30 GMT</pubDate>
    <dc:creator>CherylLau</dc:creator>
    <dc:date>2021-12-11T15:34:30Z</dc:date>
    <item>
      <title>How can I join the ledges?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-join-the-ledges/m-p/328760#M4526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have modelled a tower with a ledge around it. The ledge has an offset of 10 cm. At the corners the ledges do not join. What can I do?&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/483336_Ledge.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2020 07:13:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-join-the-ledges/m-p/328760#M4526</guid>
      <dc:creator>MariaKurzmann-Engler</dc:creator>
      <dc:date>2020-02-26T07:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I join the ledges?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-join-the-ledges/m-p/328761#M4527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vertical trim planes are automatically added after a comp for exactly this use case.&amp;nbsp; It looks like the trim planes are already cutting your geometry in your screenshot since the ledges seem to be cut on an angle.&amp;nbsp; Try doing&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;center&lt;/SPAN&gt; before &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;primitiveCube&lt;/SPAN&gt;.&amp;nbsp; This is because when &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;primitiveCube&lt;/SPAN&gt; is inserted, the trim planes automatically cut the geometry,&amp;nbsp;so when the cube is inserted first, the geometry is first cut (when it is in the wrong position), and then the cut geometry is centered.&amp;nbsp; To see what I mean, remove the &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;center&lt;/SPAN&gt;, and see what you get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The help doc has a&amp;nbsp;trim plane example where the scope is centered, and then the cube is inserted:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://doc.arcgis.com/en/cityengine/latest/cga/cga-comp.htm#ESRI_SECTION3_F70EF8376EEB4E3AB4613C570BE9FFD9" title="https://doc.arcgis.com/en/cityengine/latest/cga/cga-comp.htm#ESRI_SECTION3_F70EF8376EEB4E3AB4613C570BE9FFD9" rel="nofollow noopener noreferrer" target="_blank"&gt;comp operation—CGA | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is some code which&amp;nbsp;relies on the trim planes from the &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;comp&lt;/SPAN&gt; to create&amp;nbsp;a ledge that meets in the corners.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;const ledge_height = 0.3
const ledge_depth = 0.1


Lot --&amp;gt;
     extrude(10) Mass.
     comp(f) { side: Facade }
	
Facade --&amp;gt;
     split(y) { ~1: Floor.
              | ledge_height: Ledge
              | ~1: Floor. }

Ledge --&amp;gt;
     s(scope.sx + 2*ledge_depth, '1, ledge_depth)
     center(x)
     primitiveCube
&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;/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;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/483347_trim_ledge.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:34:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-join-the-ledges/m-p/328761#M4527</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2021-12-11T15:34:30Z</dc:date>
    </item>
  </channel>
</rss>

