<?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: CityEngine - comp and split operations in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-comp-and-split-operations/m-p/293171#M4029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Going by face index (as opposed to front, etc) gives you full control but also requires more work since you, AFAIK, can't mix top/bottom/front/etc and face indexes. Try this on a T-shape:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Lot --&amp;gt;
extrude(200)
comp(f){
0: zero | 1: one | 2: two | 3: rc 
| 4: rc | 5: rc | 5: rc | 6:rc | 
7: rc | 8: rc | 9:rc }

zero --&amp;gt;
split(x){~0.5: rc | ~0.5: rc}

one --&amp;gt; color(rand,rand,rand)
two --&amp;gt; color(rand,rand,rand)
rc --&amp;gt;&amp;nbsp; color(rand,rand,rand)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="T.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/128895_T.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 14:06:15 GMT</pubDate>
    <dc:creator>LR</dc:creator>
    <dc:date>2021-12-11T14:06:15Z</dc:date>
    <item>
      <title>CityEngine - comp and split operations</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-comp-and-split-operations/m-p/293167#M4025</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;&lt;SPAN style="font-size: 9.0pt; font-family: 'Helvetica',sans-serif;"&gt;I would like to use comp() operation and after this the split() operation on my building. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Helvetica',sans-serif;"&gt;But the building has so many faces / facades on the same sides with different attributes, like textures, windows etc. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Helvetica',sans-serif;"&gt;How can I use these operations? F&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 12px;"&gt;or example i&lt;/SPAN&gt;f I use this operation "comp(f) {front : fFacade | side : sFacade | top : Roof}" and then if I use the split() operation, it will split all the faces on the same side, but I want to split &lt;STRONG&gt;only a specific face&lt;/STRONG&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Helvetica',sans-serif;"&gt;You can find an example about my problem on this link: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 12px;"&gt;I would like to split only one face on the Y axis which is in front.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Helvetica',sans-serif;"&gt;Thanks for all answers!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Helvetica',sans-serif;"&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Helvetica',sans-serif;"&gt;Aletta&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 11:33:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-comp-and-split-operations/m-p/293167#M4025</guid>
      <dc:creator>SchSch</dc:creator>
      <dc:date>2015-09-21T11:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: CityEngine - comp and split operations</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-comp-and-split-operations/m-p/293168#M4026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sch,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can split the faces by the following also&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;comp(f){1 : 1stface | 2 : 2ndface |&amp;nbsp; ..... and so on to n th face}&amp;nbsp; -- Here you can access each face of comp(f)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is another method rather than front, side and Top split. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #000000; font-family: Arial, Helvetica, sans-serif;"&gt;Regards,&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #000000; font-family: Arial, Helvetica, sans-serif;"&gt;Jawadh&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 14:32:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-comp-and-split-operations/m-p/293168#M4026</guid>
      <dc:creator>JawadhHabeeb1</dc:creator>
      <dc:date>2015-09-21T14:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: CityEngine - comp and split operations</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-comp-and-split-operations/m-p/293169#M4027</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;Thank you for your answer, but this approach of the subdivision doesn't work for me unfortunately properly.&lt;/P&gt;&lt;P&gt;Can you tell me more accurate informations about it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides that I'm waiting for another solutions, too.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Aletta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 14:35:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-comp-and-split-operations/m-p/293169#M4027</guid>
      <dc:creator>SchSch</dc:creator>
      <dc:date>2015-09-23T14:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: CityEngine - comp and split operations</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-comp-and-split-operations/m-p/293170#M4028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you can use a number as the first character of a rule, so Jawadh's example should be altered to something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;comp(f){1 : First | 2 : Second |&amp;nbsp; ..... and so on to n th face}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise tell us what doesn't work - is it an error or a particular reason it doesn't work for what you're trying to achieve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 07:00:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-comp-and-split-operations/m-p/293170#M4028</guid>
      <dc:creator>BenLeslie1</dc:creator>
      <dc:date>2015-09-24T07:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: CityEngine - comp and split operations</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-comp-and-split-operations/m-p/293171#M4029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Going by face index (as opposed to front, etc) gives you full control but also requires more work since you, AFAIK, can't mix top/bottom/front/etc and face indexes. Try this on a T-shape:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Lot --&amp;gt;
extrude(200)
comp(f){
0: zero | 1: one | 2: two | 3: rc 
| 4: rc | 5: rc | 5: rc | 6:rc | 
7: rc | 8: rc | 9:rc }

zero --&amp;gt;
split(x){~0.5: rc | ~0.5: rc}

one --&amp;gt; color(rand,rand,rand)
two --&amp;gt; color(rand,rand,rand)
rc --&amp;gt;&amp;nbsp; color(rand,rand,rand)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="T.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/128895_T.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:06:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-comp-and-split-operations/m-p/293171#M4029</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2021-12-11T14:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: CityEngine - comp and split operations</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-comp-and-split-operations/m-p/293172#M4030</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;Everything is all right, thank you everyone for the helpful advices and the perfect illustration! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Aletta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Oct 2015 19:57:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cityengine-comp-and-split-operations/m-p/293172#M4030</guid>
      <dc:creator>SchSch</dc:creator>
      <dc:date>2015-10-03T19:57:00Z</dc:date>
    </item>
  </channel>
</rss>

