<?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: Dividing building into smaller, separate components? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/dividing-building-into-smaller-separate-components/m-p/355136#M4874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this should be possible using the split operation. &amp;nbsp;You can split an extruded volume in the x, y, and z directions.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_split.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_split.html" rel="nofollow noopener noreferrer" target="_blank"&gt;split Operation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if you want to split into 3x3x3 volumes, you can do this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;height = 10
floor_height = rint(height/3)
apt_width = rint(scope.sx/3)
apt_depth = rint(scope.sz/3)


Lot --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;extrude(height)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;split(y) { ~floor_height: split(x) { ~apt_width: split(z) { ~apt_depth: Apt. }* }* }*
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to split into cubes with equal length sides, then you can set the split size&amp;nbsp;to be an exact number (don't use the ~ sign in front).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you split into floors first and get the 2D floor footprint, you can&amp;nbsp;use the splitArea operation to split into equal area parts (or into parts with specific area measurements). &amp;nbsp;Then, from the 2D apartment footprint, you can extrude to get the volume back.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_splitArea.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_splitArea.html" rel="nofollow noopener noreferrer" target="_blank"&gt;splitArea Operation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other options for partitioning 2D space include: offset, setback, shapeL, shapeU, and shapeO. &amp;nbsp;Then, extrude the 2D footprint by the floor height to get the 3D volume.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_offset.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_offset.html" rel="nofollow noopener noreferrer" target="_blank"&gt;offset Operation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_setback.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_setback.html" rel="nofollow noopener noreferrer" target="_blank"&gt;setback Operation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_shapeLUO.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_shapeLUO.html" rel="nofollow noopener noreferrer" target="_blank"&gt;shapeL, shapeU, shapeO operations&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 16:38:33 GMT</pubDate>
    <dc:creator>CherylLau</dc:creator>
    <dc:date>2021-12-11T16:38:33Z</dc:date>
    <item>
      <title>Dividing building into smaller, separate components?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/dividing-building-into-smaller-separate-components/m-p/355135#M4873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to divide an extruded building volume into smaller, separate volumes approximating different apartments - in the simplest situation, I would like to divide the building into a stack of 3D cubes (say 3 by 3). Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;km&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 17:53:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/dividing-building-into-smaller-separate-components/m-p/355135#M4873</guid>
      <dc:creator>kendramunn</dc:creator>
      <dc:date>2017-06-12T17:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing building into smaller, separate components?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/dividing-building-into-smaller-separate-components/m-p/355136#M4874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this should be possible using the split operation. &amp;nbsp;You can split an extruded volume in the x, y, and z directions.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_split.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_split.html" rel="nofollow noopener noreferrer" target="_blank"&gt;split Operation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if you want to split into 3x3x3 volumes, you can do this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;height = 10
floor_height = rint(height/3)
apt_width = rint(scope.sx/3)
apt_depth = rint(scope.sz/3)


Lot --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;extrude(height)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;split(y) { ~floor_height: split(x) { ~apt_width: split(z) { ~apt_depth: Apt. }* }* }*
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to split into cubes with equal length sides, then you can set the split size&amp;nbsp;to be an exact number (don't use the ~ sign in front).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you split into floors first and get the 2D floor footprint, you can&amp;nbsp;use the splitArea operation to split into equal area parts (or into parts with specific area measurements). &amp;nbsp;Then, from the 2D apartment footprint, you can extrude to get the volume back.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_splitArea.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_splitArea.html" rel="nofollow noopener noreferrer" target="_blank"&gt;splitArea Operation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other options for partitioning 2D space include: offset, setback, shapeL, shapeU, and shapeO. &amp;nbsp;Then, extrude the 2D footprint by the floor height to get the 3D volume.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_offset.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_offset.html" rel="nofollow noopener noreferrer" target="_blank"&gt;offset Operation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_setback.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_setback.html" rel="nofollow noopener noreferrer" target="_blank"&gt;setback Operation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_shapeLUO.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_shapeLUO.html" rel="nofollow noopener noreferrer" target="_blank"&gt;shapeL, shapeU, shapeO operations&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:38:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/dividing-building-into-smaller-separate-components/m-p/355136#M4874</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2021-12-11T16:38:33Z</dc:date>
    </item>
  </channel>
</rss>

