<?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: Extrusion based on highest vertex after alignment to terrain in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrusion-based-on-highest-vertex-after-alignment/m-p/545927#M7392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you. it worked. but I still don't get why there's not a simple option/command to choose whether you want the extrusion to be measured from the &lt;EM&gt;lowest or highest vertex&lt;/EM&gt; of a nonplanar shape.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Oct 2018 14:24:48 GMT</pubDate>
    <dc:creator>JafarNajafli</dc:creator>
    <dc:date>2018-10-16T14:24:48Z</dc:date>
    <item>
      <title>Extrusion based on highest vertex after alignment to terrain</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrusion-based-on-highest-vertex-after-alignment/m-p/545923#M7388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this question was asked before but I could not find anything about it and it affects all my projects &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically I want CGA to measure my extrusion distance from the HIGHEST vertex of each shape instead of the lowest which is the rule default of &lt;EM&gt;extrude(world.up.flatTop)&lt;/EM&gt;. Because when the my buildings are aligned to terrain and extruded based on lowest vertex my building look shorter than they are supposed to in terms of height.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Picture attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2018 13:42:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrusion-based-on-highest-vertex-after-alignment/m-p/545923#M7388</guid>
      <dc:creator>JafarNajafli</dc:creator>
      <dc:date>2018-10-11T13:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Extrusion based on highest vertex after alignment to terrain</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrusion-based-on-highest-vertex-after-alignment/m-p/545924#M7389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jafar!&lt;/P&gt;&lt;P&gt;You could add the current geometry height to the extrusion height.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Lot --&amp;gt; extrude(world.up.flatTop, myHeight + geometry.height)&lt;SPAN class="line-numbers-rows"&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;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Lot --&amp;gt; alignScopeToAxes(y)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extrude(world.up.flatTop, myHeight + scope.sy)
&lt;SPAN class="line-numbers-rows"&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;Hope that helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:37:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrusion-based-on-highest-vertex-after-alignment/m-p/545924#M7389</guid>
      <dc:creator>MartinManzer</dc:creator>
      <dc:date>2021-12-11T23:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Extrusion based on highest vertex after alignment to terrain</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrusion-based-on-highest-vertex-after-alignment/m-p/545925#M7390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer Martin,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this CGA adds an extra basement to my highest vertex where the extrusion is supposed to be based on. See attachment please. In this case there is a 4 floored building with floorheight of 3 meters. And I want to be extruded to 4*3=12 meters from the highest vertex of the lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/424432_Extrusion problem.jpg" /&gt;I want the total height to be not more than 12.50 meters&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2018 09:41:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrusion-based-on-highest-vertex-after-alignment/m-p/545925#M7390</guid>
      <dc:creator>JafarNajafli</dc:creator>
      <dc:date>2018-10-16T09:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Extrusion based on highest vertex after alignment to terrain</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrusion-based-on-highest-vertex-after-alignment/m-p/545926#M7391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are applying the split along the y extent which starts at the lowest y coordinate.&amp;nbsp;The orange ground floor has a height of 3, but because the initial shape is non-planar the height is lower at some vertices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a modification to you rule.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Lot--&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;alignScopeToAxes(y)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Extrude(scope.sy)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Extrude(nonPlanarHeight) --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;extrude(world.up.flatTop, height + nonPlanarHeight)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Building(nonPlanarHeight)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Building(nonPlanarHeight) --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;split(y) { nonPlanarHeight : Basement | { ~floorheight : Floor. }* }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Basement --&amp;gt; color("#fc824e")‍‍‍‍‍‍‍‍‍‍‍‍&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:37:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrusion-based-on-highest-vertex-after-alignment/m-p/545926#M7391</guid>
      <dc:creator>MartinManzer</dc:creator>
      <dc:date>2021-12-11T23:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extrusion based on highest vertex after alignment to terrain</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrusion-based-on-highest-vertex-after-alignment/m-p/545927#M7392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you. it worked. but I still don't get why there's not a simple option/command to choose whether you want the extrusion to be measured from the &lt;EM&gt;lowest or highest vertex&lt;/EM&gt; of a nonplanar shape.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2018 14:24:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrusion-based-on-highest-vertex-after-alignment/m-p/545927#M7392</guid>
      <dc:creator>JafarNajafli</dc:creator>
      <dc:date>2018-10-16T14:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Extrusion based on highest vertex after alignment to terrain</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrusion-based-on-highest-vertex-after-alignment/m-p/545928#M7393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Happy it worked for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're trying to limit the available parameters and the amount of operations if a goal can also be achieved by a combination of several simpler operations &amp;amp; functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2018 14:40:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrusion-based-on-highest-vertex-after-alignment/m-p/545928#M7393</guid>
      <dc:creator>MartinManzer</dc:creator>
      <dc:date>2018-10-16T14:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Extrusion based on highest vertex after alignment to terrain</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrusion-based-on-highest-vertex-after-alignment/m-p/545929#M7394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one more question, is nonPlanarHeight a pre-defined function (couldn't find anything about it in CE Help) in here or it is just a symbolic word you put for sync purposes? I am trying to understand the code so I can further develop it myself. thanks in advance for your time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 15:15:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrusion-based-on-highest-vertex-after-alignment/m-p/545929#M7394</guid>
      <dc:creator>JafarNajafli</dc:creator>
      <dc:date>2018-10-17T15:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Extrusion based on highest vertex after alignment to terrain</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrusion-based-on-highest-vertex-after-alignment/m-p/545930#M7395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its a parameterized rule.&lt;/P&gt;&lt;P&gt;See&amp;nbsp;&lt;A class="link-titled" href="https://cehelp.esri.com/help/index.jsp?topic=/com.procedural.cityengine.help/html/manual/cga/writing_rules/cga_wr_parameterized_rule.html" title="https://cehelp.esri.com/help/index.jsp?topic=/com.procedural.cityengine.help/html/manual/toc.html"&gt;Online Manual&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So "nonPlanarHeight" in rule definition&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;Extrude(nonPlanarHeight) --&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;is just a self-chosen parameter name. Relevant is only that it is called with scope.y&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;Extrude(scope.sy)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Because in this use case scope.y equals the height of a non-planar shape, it makes sense to give the parameter this name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 15:26:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrusion-based-on-highest-vertex-after-alignment/m-p/545930#M7395</guid>
      <dc:creator>MartinManzer</dc:creator>
      <dc:date>2018-10-17T15:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Extrusion based on highest vertex after alignment to terrain</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrusion-based-on-highest-vertex-after-alignment/m-p/545931#M7396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you also give me directions on how to start the extrusion from the middle vertice of parcel's street edge?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I already asked too many questions but I really appreciate your help:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 13:45:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrusion-based-on-highest-vertex-after-alignment/m-p/545931#M7396</guid>
      <dc:creator>JafarNajafli</dc:creator>
      <dc:date>2018-10-19T13:45:47Z</dc:date>
    </item>
  </channel>
</rss>

