<?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 Fixed number of split? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/fixed-number-of-split/m-p/86542#M1204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to specify the exact number of times a shape is split?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example (from the manual):&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;A--&amp;gt; &lt;SPAN style="color: #000000; background: #b5d5ff;"&gt;split&lt;/SPAN&gt;(x){ 2 : X(2) | 1 : Y(1) }*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;will give as many of the "2 1 2 1 ..." pattern as can fit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But what if I want to have exactly 3, as in "2 1 2 1 2 1" and leave the rest of the shape unused?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can always do:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;A--&amp;gt; &lt;SPAN style="color: #000000; background: #b5d5ff;"&gt;split&lt;/SPAN&gt;&lt;SPAN&gt;(x){ 2 : X(2) | 1 : Y(1) |&amp;nbsp;2 : X(2) | 1 : Y(1) |&amp;nbsp;2 : X(2) | 1 : Y(1) }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But I want the number of times to repeat to be an attribute. &amp;nbsp;Something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;A--&amp;gt; &lt;SPAN style="color: #000000; background: #b5d5ff;"&gt;split&lt;/SPAN&gt;&lt;SPAN&gt;(x){ 2 : X(2) | 1 : Y(1) } * repeat&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 May 2017 20:51:34 GMT</pubDate>
    <dc:creator>RobertYu</dc:creator>
    <dc:date>2017-05-18T20:51:34Z</dc:date>
    <item>
      <title>Fixed number of split?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/fixed-number-of-split/m-p/86542#M1204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to specify the exact number of times a shape is split?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example (from the manual):&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;A--&amp;gt; &lt;SPAN style="color: #000000; background: #b5d5ff;"&gt;split&lt;/SPAN&gt;(x){ 2 : X(2) | 1 : Y(1) }*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;will give as many of the "2 1 2 1 ..." pattern as can fit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But what if I want to have exactly 3, as in "2 1 2 1 2 1" and leave the rest of the shape unused?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can always do:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;A--&amp;gt; &lt;SPAN style="color: #000000; background: #b5d5ff;"&gt;split&lt;/SPAN&gt;&lt;SPAN&gt;(x){ 2 : X(2) | 1 : Y(1) |&amp;nbsp;2 : X(2) | 1 : Y(1) |&amp;nbsp;2 : X(2) | 1 : Y(1) }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But I want the number of times to repeat to be an attribute. &amp;nbsp;Something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;A--&amp;gt; &lt;SPAN style="color: #000000; background: #b5d5ff;"&gt;split&lt;/SPAN&gt;&lt;SPAN&gt;(x){ 2 : X(2) | 1 : Y(1) } * repeat&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 20:51:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/fixed-number-of-split/m-p/86542#M1204</guid>
      <dc:creator>RobertYu</dc:creator>
      <dc:date>2017-05-18T20:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed number of split?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/fixed-number-of-split/m-p/86543#M1205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, unfortunately, there is no easy way to specify how many times you want the pattern to repeat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would have to calculate the length of the last part and put that in the split.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would have to write it recursively to keep splitting until the desired count is reached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 15:17:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/fixed-number-of-split/m-p/86543#M1205</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2017-05-25T15:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed number of split?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/fixed-number-of-split/m-p/86544#M1206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. &amp;nbsp;How does one go about making a feature request?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 May 2017 00:45:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/fixed-number-of-split/m-p/86544#M1206</guid>
      <dc:creator>RobertYu</dc:creator>
      <dc:date>2017-05-27T00:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed number of split?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/fixed-number-of-split/m-p/86545#M1207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GeoNet users can make CityEngine feature requests on &lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/community/arcgis-ideas/content?filterID=contentstatus%5Bpublished%5D%7Ecategory%5Besri-cityengine%5D" title="https://community.esri.com/community/arcgis-ideas/content?filterID=contentstatus%5Bpublished%5D%7Ecategory%5Besri-cityengine%5D"&gt;ArcGIS Ideas - CityEngine&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Other users with the same request can vote on it and add comments.&lt;/P&gt;&lt;P&gt;This section is moderated by the CityEngine development team.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 14:56:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/fixed-number-of-split/m-p/86545#M1207</guid>
      <dc:creator>ThomasFuchs</dc:creator>
      <dc:date>2017-05-30T14:56:41Z</dc:date>
    </item>
  </channel>
</rss>

