<?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: Floating split in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/floating-split/m-p/540521#M7316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah. Then all you need is a little math.&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;split&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;minWidth&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;minWidth&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;scope&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sx&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;minWidth&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;floor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;scope&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sx&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;minWidth&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;floor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;scope&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sx&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;minWidth&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; X&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Sep 2017 20:22:47 GMT</pubDate>
    <dc:creator>LR</dc:creator>
    <dc:date>2017-09-20T20:22:47Z</dc:date>
    <item>
      <title>Floating split</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/floating-split/m-p/540518#M7313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to split a surface into as many parts as possible without any leftover space, so I figured that the floating split would be perfect. Unfortunately, I encounter a problem where the split distance is shorter than the floating number, is there a way to make the floating number the minimum distance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An&amp;nbsp;excample could be that you have an 11 meters long surface you need to split into smaller surfaces with the floating distance of 2. I would then write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Surface --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;split(x) {~2 : Surface01 }*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this case, the split can produce either 5 splits that each is 2.2 meters or 6 splits that are 1.83 meters, I guess that CE would create 6 splits as that creates the width that is closest to 2, but what would if I wanted it to do five splits?. Is there a way to ensure that 2 is a minimum distance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Kristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 12:28:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/floating-split/m-p/540518#M7313</guid>
      <dc:creator>KristianMortensen1</dc:creator>
      <dc:date>2017-09-19T12:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Floating split</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/floating-split/m-p/540519#M7314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Repeat splits fix the leftover automatically. Just do hard 2m splits, that way you'll end up with 5x2m and and a 1m leftover. You can also nest repeat splits, like so:&amp;nbsp;&lt;STRONG&gt;split(x){~1: X. | {2: X.}* | ~1: X.}&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 21:21:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/floating-split/m-p/540519#M7314</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2017-09-19T21:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Floating split</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/floating-split/m-p/540520#M7315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer and your solutions would work in the specific case, but it is not directly&amp;nbsp;what I'm&amp;nbsp;looking for, the problem is I don't want to have any "leftover" space at the edges but have it divided into equal sizes with a minimum&amp;nbsp;distance of 2, everything above 2 is fine. &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 11:18:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/floating-split/m-p/540520#M7315</guid>
      <dc:creator>KristianMortensen1</dc:creator>
      <dc:date>2017-09-20T11:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Floating split</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/floating-split/m-p/540521#M7316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah. Then all you need is a little math.&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;split&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;minWidth&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;minWidth&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;scope&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sx&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;minWidth&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;floor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;scope&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sx&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;minWidth&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;floor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;scope&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sx&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;minWidth&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; X&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 20:22:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/floating-split/m-p/540521#M7316</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2017-09-20T20:22:47Z</dc:date>
    </item>
  </channel>
</rss>

