<?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: Split rectangle in triangles in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/split-rectangle-in-triangles/m-p/514812#M6964</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;BR /&gt;&lt;SPAN&gt;you need to insert an asset with the two tringles to do this ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2014 14:10:35 GMT</pubDate>
    <dc:creator>MatthiasBuehler1</dc:creator>
    <dc:date>2014-06-12T14:10:35Z</dc:date>
    <item>
      <title>Split rectangle in triangles</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/split-rectangle-in-triangles/m-p/514811#M6963</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;Is it possible to split a rectangle in to two triangles - Splitting on the along the diagonal?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 06:02:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/split-rectangle-in-triangles/m-p/514811#M6963</guid>
      <dc:creator>NicolajMikkelsen</dc:creator>
      <dc:date>2014-06-12T06:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Split rectangle in triangles</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/split-rectangle-in-triangles/m-p/514812#M6964</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;BR /&gt;&lt;SPAN&gt;you need to insert an asset with the two tringles to do this ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 14:10:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/split-rectangle-in-triangles/m-p/514812#M6964</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2014-06-12T14:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Split rectangle in triangles</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/split-rectangle-in-triangles/m-p/1324621#M11159</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm a beginner in CGA, taking it step by step by looking through old QnAs.&lt;BR /&gt;I haven't explored all of the CGA features yet, so there might be simpler and better codes, but assuming a rectangle, you can use the following code to bisect it diagonally.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="seongwonkang_0-1693538086466.png" style="width: 285px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/79619i840419F44372F60A/image-dimensions/285x238?v=v2" width="285" height="238" role="button" title="seongwonkang_0-1693538086466.png" alt="seongwonkang_0-1693538086466.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;diagonalAngle = atan(scope.sx/scope.sz)

Lot --&amp;gt;
	rotateScope(0, diagonalAngle, 0) //You should rotateScope before split().
	split(x){'.5:A.}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 03:15:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/split-rectangle-in-triangles/m-p/1324621#M11159</guid>
      <dc:creator>desert</dc:creator>
      <dc:date>2023-09-01T03:15:30Z</dc:date>
    </item>
  </channel>
</rss>

