<?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: My Plint Area. Need Help. in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/my-plint-area-need-help/m-p/209880#M2757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mathias!! thanks for your reply. yup you were right actually what i need is to split in x and z direction... i didnt notice about z by using split(z) until you mention. here update of my splitting! thanks!! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]16671[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the geometry.area attr you post here.. i ve used it! it works!! thanks... do you have any idea where can i get more tutorial on city engine T_______T. most of time i use the help ..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Aug 2012 03:47:07 GMT</pubDate>
    <dc:creator>RamliJannatul_Alia</dc:creator>
    <dc:date>2012-08-05T03:47:07Z</dc:date>
    <item>
      <title>My Plint Area. Need Help.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/my-plint-area-need-help/m-p/209878#M2755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all City Engine cga coder &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;im trying to create a cga rule for plint area.. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is my idea.. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) i do setback (street) for a lot &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
Lot--&amp;gt; 
setback(setBackRoad) {streetSide: Garten | remainder : Lot2 }
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) I try to split into 4 small lot...&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
Lot2--&amp;gt; 
 split(x){ '0.5 : one |&amp;nbsp;&amp;nbsp; '0.5 : two }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 split(v, uvSpace, 0) { 0.5 : three}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it do not generate like i want &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;heres the pic [ATTACH=CONFIG]16625[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;its should split v..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;how can i save the value of area Splitted in a attr? ive tried but failed... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;basically in plint area i have to find remainder area after setbackroad has been applied and building are allowed to build in plint area only.. for example 25% of geometry.area...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 05:10:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/my-plint-area-need-help/m-p/209878#M2755</guid>
      <dc:creator>RamliJannatul_Alia</dc:creator>
      <dc:date>2012-08-03T05:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: My Plint Area. Need Help.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/my-plint-area-need-help/m-p/209879#M2756</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;first, 3 things :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1] shape copies&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if you write :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;A --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; B
&amp;nbsp;&amp;nbsp;&amp;nbsp; C&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you get 2 copies of the incoming shape (A), named B and C which are identical. this is sometimes useful, but not in your case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if you write :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Lot2--&amp;gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; split(x){ '0.5 : one |&amp;nbsp;&amp;nbsp; '0.5 : two }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; split(v, uvSpace, 0) { 0.5 : three}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you basically first make 2 copies of Lot2. thus you get wrong geometry. what you want is to split 'one' and 'two' further in the opposite direction, so you either need to define a new rule for this or write the same operation in the same line. CGA, in this case, does not go down step by step through each line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;familiarize yourself more with the scope here :&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/44417-CGA-Understanding-the-concept-of-the-scope" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.arcgis.com/threads/44417-CGA-Understanding-the-concept-of-the-scope&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and notice that for splitting in u and v directions, you first need to set the UVs properly first with setupProjection() and projectUV(). but in your case, you rather just want to split in x and z directions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;only Street and Sidewalk shapes have already properly layouted UVs so you can split them nicely. on Lot shapes, I'd never use UV splits.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you can use the so-called 'generic attributes'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;define an attr, e.g. :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;attr remainingLotArea = 0&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;then, after the setback where you get the remainder shape, set the attr :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;set(remainingLotArea, geometry.area)
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;after that, you can access this attr in the rest of your code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hope this helps you further.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:20:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/my-plint-area-need-help/m-p/209879#M2756</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2021-12-11T10:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: My Plint Area. Need Help.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/my-plint-area-need-help/m-p/209880#M2757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mathias!! thanks for your reply. yup you were right actually what i need is to split in x and z direction... i didnt notice about z by using split(z) until you mention. here update of my splitting! thanks!! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]16671[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the geometry.area attr you post here.. i ve used it! it works!! thanks... do you have any idea where can i get more tutorial on city engine T_______T. most of time i use the help ..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Aug 2012 03:47:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/my-plint-area-need-help/m-p/209880#M2757</guid>
      <dc:creator>RamliJannatul_Alia</dc:creator>
      <dc:date>2012-08-05T03:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: My Plint Area. Need Help.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/my-plint-area-need-help/m-p/209881#M2758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;there's tutorials with help HTML files you can download from within CE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help --&amp;gt; Download Tutorials and Examples&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 13:59:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/my-plint-area-need-help/m-p/209881#M2758</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-08-15T13:59:48Z</dc:date>
    </item>
  </channel>
</rss>

