<?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: how do i rectify buildings so they can float on terrain instead of sinking? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-rectify-buildings-so-they-can-float-on/m-p/378240#M5231</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get a foundation shape:&lt;/P&gt;&lt;P&gt;1. Run Align Shapes to Terrain command, and choose Project All, so that each vertex is on the terrain.&lt;/P&gt;&lt;P&gt;2. In your rule's start shape, put alignShapeToAxes(y) to make sure the scope (bounding box for the vertices) is aligned with y axis straight up.&lt;/P&gt;&lt;P&gt;3. At this point, the scope.sy attribute of the shape is the height of your foundation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Oh, never mind, I just wrote a rule to demonstrate it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;version "2014.1"


# For use on non-flat building footprint,
# so project footprint to terrain using Align Shapes to Terrain (Project All option).


@Hidden
attr originalScopeY = 0


@StartRule
SlantedBuildingFootprint --&amp;gt;
&amp;nbsp; # Align scope to have y axis up.
&amp;nbsp; alignScopeToAxes(y)
&amp;nbsp; # Save this shape's height.
&amp;nbsp; set(originalScopeY, scope.sy)
&amp;nbsp; # Flatten footprint by scaling y to zero.
&amp;nbsp; s('1,0,'1)
&amp;nbsp; extrude(originalScopeY)
&amp;nbsp; color(1,0,0)
&amp;nbsp; # Make it transparent for demo purpose.
&amp;nbsp; set(material.opacity, 0.5)
&amp;nbsp; # At this point the top or bottom can be used for floors (basement and upper floors.






&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Picture of original slanted footprint, with foundation. This shape represents if you build a foundation shape that reaches the highest and lowest points where your shape hits the terrain. Is this what you are looking for?&amp;nbsp; -Chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/50792_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 17:28:25 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-12-11T17:28:25Z</dc:date>
    <item>
      <title>how do i rectify buildings so they can float on terrain instead of sinking?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-rectify-buildings-so-they-can-float-on/m-p/378236#M5227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i put terrain on my scenes and align my models to it..they are sinking into the terrain and also the texture file is not displaying.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 10:58:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-rectify-buildings-so-they-can-float-on/m-p/378236#M5227</guid>
      <dc:creator>johne</dc:creator>
      <dc:date>2014-08-19T10:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: how do i rectify buildings so they can float on terrain instead of sinking?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-rectify-buildings-so-they-can-float-on/m-p/378237#M5228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi .. what type of buildings do you have ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you post a screenshot of what your workflow is ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 20:48:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-rectify-buildings-so-they-can-float-on/m-p/378237#M5228</guid>
      <dc:creator>MatthiasBuehler</dc:creator>
      <dc:date>2014-08-19T20:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: how do i rectify buildings so they can float on terrain instead of sinking?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-rectify-buildings-so-they-can-float-on/m-p/378238#M5229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;after i analyzed the graph and changed the size of the DEM it worked. even so thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 11:16:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-rectify-buildings-so-they-can-float-on/m-p/378238#M5229</guid>
      <dc:creator>johne</dc:creator>
      <dc:date>2014-08-20T11:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: how do i rectify buildings so they can float on terrain instead of sinking?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-rectify-buildings-so-they-can-float-on/m-p/378239#M5230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this same vein, How do I set my building "foundations" to follow the terrain. At the moment I have to set each building foundation's elevations so the building's are level.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 16:46:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-rectify-buildings-so-they-can-float-on/m-p/378239#M5230</guid>
      <dc:creator>RobertJenkins1</dc:creator>
      <dc:date>2015-01-13T16:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: how do i rectify buildings so they can float on terrain instead of sinking?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-rectify-buildings-so-they-can-float-on/m-p/378240#M5231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get a foundation shape:&lt;/P&gt;&lt;P&gt;1. Run Align Shapes to Terrain command, and choose Project All, so that each vertex is on the terrain.&lt;/P&gt;&lt;P&gt;2. In your rule's start shape, put alignShapeToAxes(y) to make sure the scope (bounding box for the vertices) is aligned with y axis straight up.&lt;/P&gt;&lt;P&gt;3. At this point, the scope.sy attribute of the shape is the height of your foundation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Oh, never mind, I just wrote a rule to demonstrate it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;version "2014.1"


# For use on non-flat building footprint,
# so project footprint to terrain using Align Shapes to Terrain (Project All option).


@Hidden
attr originalScopeY = 0


@StartRule
SlantedBuildingFootprint --&amp;gt;
&amp;nbsp; # Align scope to have y axis up.
&amp;nbsp; alignScopeToAxes(y)
&amp;nbsp; # Save this shape's height.
&amp;nbsp; set(originalScopeY, scope.sy)
&amp;nbsp; # Flatten footprint by scaling y to zero.
&amp;nbsp; s('1,0,'1)
&amp;nbsp; extrude(originalScopeY)
&amp;nbsp; color(1,0,0)
&amp;nbsp; # Make it transparent for demo purpose.
&amp;nbsp; set(material.opacity, 0.5)
&amp;nbsp; # At this point the top or bottom can be used for floors (basement and upper floors.






&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Picture of original slanted footprint, with foundation. This shape represents if you build a foundation shape that reaches the highest and lowest points where your shape hits the terrain. Is this what you are looking for?&amp;nbsp; -Chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/50792_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:28:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-rectify-buildings-so-they-can-float-on/m-p/378240#M5231</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T17:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: how do i rectify buildings so they can float on terrain instead of sinking?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-rectify-buildings-so-they-can-float-on/m-p/378241#M5232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This ensures no part of your first floor "sinks" below the ground, but you might choose to lift the top face a bit to get the foundation to show at least a foot or so before starting your ground floor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 17:55:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-rectify-buildings-so-they-can-float-on/m-p/378241#M5232</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-01-13T17:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: how do i rectify buildings so they can float on terrain instead of sinking?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-rectify-buildings-so-they-can-float-on/m-p/378242#M5233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;I'll start working with this momentarily.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 18:04:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-rectify-buildings-so-they-can-float-on/m-p/378242#M5233</guid>
      <dc:creator>RobertJenkins1</dc:creator>
      <dc:date>2015-01-13T18:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: how do i rectify buildings so they can float on terrain instead of sinking?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-rectify-buildings-so-they-can-float-on/m-p/378243#M5234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm hoping that when I get some Lidar data I'll have a better terrain model with which to work!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 18:06:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-do-i-rectify-buildings-so-they-can-float-on/m-p/378243#M5234</guid>
      <dc:creator>RobertJenkins1</dc:creator>
      <dc:date>2015-01-13T18:06:25Z</dc:date>
    </item>
  </channel>
</rss>

