<?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 3D Noise Mapping in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/3d-noise-mapping/m-p/266159#M3528</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'm trying to create a 3D building with noise mapping applied to the side of the building.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My initial idea was to create a grid on the side of the building in CityEngine using the split function. Then I would colour each of these segments based on the noise value for that segment (I have already established what colour for each segment to create&amp;nbsp;my desired&amp;nbsp;gradient effect).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whilst I can extrude the building and split the sides of the building into a grid easily using the functions below, I cant work out how to identify each segment to then assign a colour...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Height --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;extrude(height)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Building&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;

Building --&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;comp(f) { front : Facade | side : Facade | top: Roof}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Facade --&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp; split(x){ ~widthSplit: Column(split.index) }*
&amp;nbsp;&amp;nbsp;&amp;nbsp; split(y){ ~heightSplit: Row(split.index) }*&amp;nbsp; &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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assumed I would be able to identify each segment and then use the case function to colour that segment (perhaps this isn't the most efficient method).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My other concern is that I might end up doing this over quite a large area so this may be quite a data intensive process...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In all honesty I'm open to ideas if anyone has any experience with this (either in CityEngine or ArcGIS Pro), so any help anyone can offer would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gavin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 13:04:17 GMT</pubDate>
    <dc:creator>GThomson</dc:creator>
    <dc:date>2021-12-11T13:04:17Z</dc:date>
    <item>
      <title>3D Noise Mapping</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/3d-noise-mapping/m-p/266159#M3528</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'm trying to create a 3D building with noise mapping applied to the side of the building.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My initial idea was to create a grid on the side of the building in CityEngine using the split function. Then I would colour each of these segments based on the noise value for that segment (I have already established what colour for each segment to create&amp;nbsp;my desired&amp;nbsp;gradient effect).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whilst I can extrude the building and split the sides of the building into a grid easily using the functions below, I cant work out how to identify each segment to then assign a colour...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Height --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;extrude(height)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Building&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;

Building --&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;comp(f) { front : Facade | side : Facade | top: Roof}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Facade --&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp; split(x){ ~widthSplit: Column(split.index) }*
&amp;nbsp;&amp;nbsp;&amp;nbsp; split(y){ ~heightSplit: Row(split.index) }*&amp;nbsp; &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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assumed I would be able to identify each segment and then use the case function to colour that segment (perhaps this isn't the most efficient method).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My other concern is that I might end up doing this over quite a large area so this may be quite a data intensive process...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In all honesty I'm open to ideas if anyone has any experience with this (either in CityEngine or ArcGIS Pro), so any help anyone can offer would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gavin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:04:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/3d-noise-mapping/m-p/266159#M3528</guid>
      <dc:creator>GThomson</dc:creator>
      <dc:date>2021-12-11T13:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: 3D Noise Mapping</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/3d-noise-mapping/m-p/266160#M3529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have the right idea to use split.index.&amp;nbsp; However, in the Facade rule, you have two splits, one after another.&amp;nbsp; This means that you will do a split in x to get the columns.&amp;nbsp; Then, starting from the facade scope, the second split (in y) will divide the facade into rows.&amp;nbsp; The two splits both apply to the starting facade shape and do not apply sequentially.&amp;nbsp; I think what you want is to divide the facade into grid cells, which means the splits should be applied sequentially.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is how you could split a facade into grid cells and access their row and column indices using split.index.&amp;nbsp; Also remember that you can use split.total if you need the total number of rows or columns at some point (otherwise you can remove it from the code).&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Facade --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;split(x) { ~cell_width: Column(split.index, split.total) }*
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Column(col_ind, nCols) --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;split(y) { ~cell_height: Cell(split.index, col_ind, split.total, nCols) }*
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;

Cell(row_ind, col_ind, nRows, nCols) --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print("row=" + row_ind + "\tcol=" + col_ind)
‍‍‍‍‍‍‍‍‍&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:04:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/3d-noise-mapping/m-p/266160#M3529</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2021-12-11T13:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: 3D Noise Mapping</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/3d-noise-mapping/m-p/266161#M3530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cheryl that's exactly what I was after!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using both the .index and .total was also really helpful in that I could create a loop to go through all the cells in a column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 11:38:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/3d-noise-mapping/m-p/266161#M3530</guid>
      <dc:creator>GThomson</dc:creator>
      <dc:date>2017-10-25T11:38:04Z</dc:date>
    </item>
  </channel>
</rss>

