<?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: CGA, static lot, and heightmap issue in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/cga-static-lot-and-heightmap-issue/m-p/114828#M1582</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;My guess would be the issue is here :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LotAligned2(yDim) --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; alignScopeToAxes(y)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; extrude(world.y, 100)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; split(y) {yDim : BaseVolume | ~1 : NIL}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if yDim gets very small... like 0, no BaseVolume Shape gets created, which is logic. Thus, you get no building.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thus I'd write the code somfing like this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
LotAligned2(yDim) --&amp;gt;
 case yDim &amp;gt; 0.01 :
&amp;nbsp; alignScopeToAxes(y)
&amp;nbsp; extrude(world.y, 100)
&amp;nbsp; split(y) {yDim : BaseVolume | ~1 : NIL}
 else:
&amp;nbsp; Building&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;make sense ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 06:47:37 GMT</pubDate>
    <dc:creator>MatthiasBuehler1</dc:creator>
    <dc:date>2021-12-11T06:47:37Z</dc:date>
    <item>
      <title>CGA, Static Lot, and Heightmap Issue</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cga-static-lot-and-heightmap-issue/m-p/114827#M1581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure if this is a bug in my CGA code or not.&amp;nbsp; I am trying to create a CGA that will create buildings that are horizontal on non horizontal lots by using some of the code from Tutorial 7 for creating floors and the Alignment2 code from the Non-Horizontal lot posted previously.&amp;nbsp; I managed to get everything working properly and on lots with any sort of angle the buildings generate correctly but on other lots no geometry is generated unless I move one vertex up or down on the Y axis.&amp;nbsp; The amount of movement on the Y axis is minimal but as soon as the vertex is moved geometry is generated.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The picture shows building with aligned to the heightmap with one moved vertex on the left and the blank lot is all vertices aligned to the heightmap on the right.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nate&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 19:32:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cga-static-lot-and-heightmap-issue/m-p/114827#M1581</guid>
      <dc:creator>NathanJosway</dc:creator>
      <dc:date>2011-11-15T19:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: CGA, static lot, and heightmap issue</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cga-static-lot-and-heightmap-issue/m-p/114828#M1582</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;My guess would be the issue is here :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LotAligned2(yDim) --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; alignScopeToAxes(y)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; extrude(world.y, 100)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; split(y) {yDim : BaseVolume | ~1 : NIL}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if yDim gets very small... like 0, no BaseVolume Shape gets created, which is logic. Thus, you get no building.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thus I'd write the code somfing like this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
LotAligned2(yDim) --&amp;gt;
 case yDim &amp;gt; 0.01 :
&amp;nbsp; alignScopeToAxes(y)
&amp;nbsp; extrude(world.y, 100)
&amp;nbsp; split(y) {yDim : BaseVolume | ~1 : NIL}
 else:
&amp;nbsp; Building&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;make sense ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:47:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cga-static-lot-and-heightmap-issue/m-p/114828#M1582</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2021-12-11T06:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: CGA, static lot, and heightmap issue</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cga-static-lot-and-heightmap-issue/m-p/114829#M1583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: njosway&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the help, your solution fixed the problem.&amp;nbsp; I didn't think about using the yDim as part of the case statement but that was the solution.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 16:34:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cga-static-lot-and-heightmap-issue/m-p/114829#M1583</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-11-18T16:34:33Z</dc:date>
    </item>
  </channel>
</rss>

