<?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: Combine lots after splits? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/combine-lots-after-splits/m-p/447818#M6117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wouldn't aligning scope to longest edge fix that in almost all cases?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Feb 2015 08:09:51 GMT</pubDate>
    <dc:creator>BenLeslie1</dc:creator>
    <dc:date>2015-02-06T08:09:51Z</dc:date>
    <item>
      <title>Combine lots after splits?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/combine-lots-after-splits/m-p/447813#M6112</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;I'm trying to generate basic building blocks from complex footprints. This works in general (BasicShape_1), but I'd like to refine it a bit. I used convexify to remove smaller extrusions and now I'd like to use the leftover bulk with the cube function.. however, sometimes I end up with multiple parts (see image below, green blocks), meaning I can't use that method. Is there a way to combine them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot__0001_Layer-2.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/57753_Screenshot__0001_Layer-2.png" style="width: 620px; height: 285px;" /&gt;&lt;/P&gt;&lt;P&gt;Also is there a way to force "normal" behavior after splitting? When I scale the cube on the splits, the x-axis points up. Rotating fixes that, but I expect this won't work the same everywhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot__0000_Layer-3.png" class="jive-image image-2" src="https://community.esri.com/legacyfs/online/57754_Screenshot__0000_Layer-3.png" style="width: 620px; height: 587px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;version "2014.0"


// ADJUSTMENT ATTRIBUTES
attr Roof_Angle = 33
attr Ground_Height = 1.0
attr Floor_Height = 2.8
attr Building_Height = Ground_Height + (aog*Floor_Height)


// ATTRIBUTES
attr daf = 0 
attr aog = 0
attr Building_Width = 0
attr Building_Depth = 0


Lot--&amp;gt; 
&amp;nbsp; set(Building_Width, scope.sx)
&amp;nbsp; set(Building_Depth, scope.sz)
&amp;nbsp; BasicShape_2


BasicShape_1 --&amp;gt;
&amp;nbsp; i("builtin:cube")
&amp;nbsp; s(Building_Width,Building_Height,Building_Depth)
&amp;nbsp; color(0,0,1)
&amp;nbsp; set(material.opacity,0.15)

BasicShape_2 --&amp;gt;
&amp;nbsp; color(0,1,0)
&amp;nbsp; convexify(scope.sx)
&amp;nbsp; comp(f){all: SubShapes}

SubShapes --&amp;gt;
&amp;nbsp; case scope.sx &amp;lt;= 3:
&amp;nbsp; color(1,0,0)

&amp;nbsp; else:
&amp;nbsp; color(0,1,0)
&amp;nbsp; cleanupGeometry(all,1)
&amp;nbsp; BuildCube_

BuildCube --&amp;gt;
&amp;nbsp; i("builtin:cube")
&amp;nbsp; s(Building_Width,Building_Height,Building_Depth)
&amp;nbsp; set(material.opacity,0.18)
&amp;nbsp; print(Building_Width)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:00:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/combine-lots-after-splits/m-p/447813#M6112</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2021-12-11T20:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Combine lots after splits?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/combine-lots-after-splits/m-p/447814#M6113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you scale in one direction so it's more square to prevent two cubes being used or use the split operation to trim off either end so, again, you end up with a square?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or maybe workout the threshhold at which you get two cubes and insert a different object instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you tried the alignScopeTo... operations to fix the up direction?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 07:56:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/combine-lots-after-splits/m-p/447814#M6113</guid>
      <dc:creator>BenLeslie1</dc:creator>
      <dc:date>2015-02-04T07:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Combine lots after splits?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/combine-lots-after-splits/m-p/447815#M6114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried a few things.. the closest I can get to this so far is this, but the ChopChop variable change isn't recognized by "BuildCube" so the scaling's off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BasicShape_3 --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; color(0,1,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp; convexify(scope.sx)&lt;/P&gt;&lt;P&gt;&amp;nbsp; comp(f){&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0: CutOff |&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1: SubShapes&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CutOff --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set(ChopChop, scope.sx)&lt;/P&gt;&lt;P&gt;&amp;nbsp; print(ChopChop)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;SubShapes --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; case scope.sx &amp;lt;= 3:&lt;/P&gt;&lt;P&gt;&amp;nbsp; color(1,0,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; else:&lt;/P&gt;&lt;P&gt;&amp;nbsp; color(0,1,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp; cleanupGeometry(all,1)&lt;/P&gt;&lt;P&gt;&amp;nbsp; BuildCube&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BuildCube --&amp;gt;&lt;/P&gt;&lt;P&gt;rotateScope(90,0,270)&lt;/P&gt;&lt;P&gt;#alignScopeToAxes()&lt;/P&gt;&lt;P&gt;&amp;nbsp; i("builtin:cube")&lt;/P&gt;&lt;P&gt;&amp;nbsp; s(scope.sx,Building_Height,Building_Depth-ChopChop)&lt;/P&gt;&lt;P&gt;&amp;nbsp; set(material.opacity,0.18)&lt;/P&gt;&lt;P&gt;&amp;nbsp; print(Building_Width)&lt;/P&gt;&lt;P&gt;&amp;nbsp; print(Building_Width-ChopChop)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 00:25:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/combine-lots-after-splits/m-p/447815#M6114</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2015-02-05T00:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Combine lots after splits?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/combine-lots-after-splits/m-p/447816#M6115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the benefit of using BuiltinCube?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way I would do what I think you're doing is to use innerRect() followed by extrude().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 11:07:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/combine-lots-after-splits/m-p/447816#M6115</guid>
      <dc:creator>BenLeslie1</dc:creator>
      <dc:date>2015-02-05T11:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Combine lots after splits?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/combine-lots-after-splits/m-p/447817#M6116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I can tell, the cube is easier to manipulate. innerRect would produce a rectangle somewhere inside the lot and I'd need to translate, rotate and scale it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 23:14:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/combine-lots-after-splits/m-p/447817#M6116</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2015-02-05T23:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Combine lots after splits?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/combine-lots-after-splits/m-p/447818#M6117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wouldn't aligning scope to longest edge fix that in almost all cases?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 08:09:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/combine-lots-after-splits/m-p/447818#M6117</guid>
      <dc:creator>BenLeslie1</dc:creator>
      <dc:date>2015-02-06T08:09:51Z</dc:date>
    </item>
  </channel>
</rss>

