<?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: PolygonSymbol3D with FillSymbol3DLayer draped at elevation above ground level in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polygonsymbol3d-with-fillsymbol3dlayer-draped-at/m-p/281514#M25996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, you're right. &amp;nbsp;I'm not sure if this is currently supported/easily achievable. &amp;nbsp;Ideally there would be a way to specify that a layer is 'on-the-ground' with an offset to get this effect. &amp;nbsp;But 'on-the-ground' layers ignore the offset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a mesh symbol that is probably suitable for this kind of thing:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-MeshSymbol3D.html" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-MeshSymbol3D.html"&gt;MeshSymbol3D | API Reference | ArcGIS API for JavaScript 4.3&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trouble&amp;nbsp;is, I don't know how to specify a geometry in order to describe a surface (rather than a polygon). &amp;nbsp;It wouldn't be too hard to build your own "mesh geometry" in the browser using view.basemapTerrain.getElevation at some resolution inside your polygon, but I don't see any&amp;nbsp;documentation about how you'd use this data to create&amp;nbsp;geometry in the JS API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#geometryType"&gt;Scene layers&lt;/A&gt; often use a mesh symbol and can have a geometry type of "mesh." &amp;nbsp;So they're able to draw this kind of thing in a scene. It looks like they use &lt;A href="https://github.com/Esri/i3s-spec"&gt;this format&lt;/A&gt; to hold the geometry data. &amp;nbsp;You might be able to use arcgis pro to create the geometry you're after and serve it up to the JS API somehow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option would be to use externalRenderers to create the geometry you want and render it as part of the scene. &amp;nbsp;I've played around with this using Three.js and it should be doable, though it would take&amp;nbsp;some work. I might reply to this thread later if I get a chance to make a sample for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Jun 2017 17:53:39 GMT</pubDate>
    <dc:creator>ThomasSolow</dc:creator>
    <dc:date>2017-06-01T17:53:39Z</dc:date>
    <item>
      <title>PolygonSymbol3D with FillSymbol3DLayer draped at elevation above ground level</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polygonsymbol3d-with-fillsymbol3dlayer-draped-at/m-p/281511#M25993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to take a graphic which has&amp;nbsp;a 2D polygon for geometry, and apply a&amp;nbsp;PolygonSymbol3D with&amp;nbsp;a&amp;nbsp;FillSymbol3DLayer and have it drape over the underlying topography. I can do this, and it works fine when there is no z value specified for the geometry.&lt;/P&gt;&lt;P&gt;But, I would like to raise this polygon above the ground level, but it should still have a draped effect following the contours of the topography below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know if this is possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jamie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 23:52:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polygonsymbol3d-with-fillsymbol3dlayer-draped-at/m-p/281511#M25993</guid>
      <dc:creator>JamesEyre</dc:creator>
      <dc:date>2017-05-31T23:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: PolygonSymbol3D with FillSymbol3DLayer draped at elevation above ground level</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polygonsymbol3d-with-fillsymbol3dlayer-draped-at/m-p/281512#M25994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect you can do this by setting the elevationInfo of the layer in question to relative-to-ground. &amp;nbsp;So:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;elevationInfo &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; mode&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'relative-to-ground'&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&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;I'm not sure if that will work. &amp;nbsp;If it doesn't, another option would be to set the elevationInfo mode to&amp;nbsp;'absolute' and manually calculate the position of each vertex in the polygon. &amp;nbsp;You can do this with view.basemapTerrain.getElevation(&amp;lt;point&amp;gt;) + offset from terrain (meters). &amp;nbsp;You'd want to do that for each vertex in the polygon to get a new z value for each one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 14:44:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polygonsymbol3d-with-fillsymbol3dlayer-draped-at/m-p/281512#M25994</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-06-01T14:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: PolygonSymbol3D with FillSymbol3DLayer draped at elevation above ground level</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polygonsymbol3d-with-fillsymbol3dlayer-draped-at/m-p/281513#M25995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestions, but neither of those&amp;nbsp;options work.&lt;/P&gt;&lt;P&gt;The polygon vertices are correct, but between the vertices is just a straight line, it does not follow the terrain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jamie&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 16:22:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polygonsymbol3d-with-fillsymbol3dlayer-draped-at/m-p/281513#M25995</guid>
      <dc:creator>JamesEyre</dc:creator>
      <dc:date>2017-06-01T16:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: PolygonSymbol3D with FillSymbol3DLayer draped at elevation above ground level</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polygonsymbol3d-with-fillsymbol3dlayer-draped-at/m-p/281514#M25996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, you're right. &amp;nbsp;I'm not sure if this is currently supported/easily achievable. &amp;nbsp;Ideally there would be a way to specify that a layer is 'on-the-ground' with an offset to get this effect. &amp;nbsp;But 'on-the-ground' layers ignore the offset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a mesh symbol that is probably suitable for this kind of thing:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-MeshSymbol3D.html" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-MeshSymbol3D.html"&gt;MeshSymbol3D | API Reference | ArcGIS API for JavaScript 4.3&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trouble&amp;nbsp;is, I don't know how to specify a geometry in order to describe a surface (rather than a polygon). &amp;nbsp;It wouldn't be too hard to build your own "mesh geometry" in the browser using view.basemapTerrain.getElevation at some resolution inside your polygon, but I don't see any&amp;nbsp;documentation about how you'd use this data to create&amp;nbsp;geometry in the JS API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#geometryType"&gt;Scene layers&lt;/A&gt; often use a mesh symbol and can have a geometry type of "mesh." &amp;nbsp;So they're able to draw this kind of thing in a scene. It looks like they use &lt;A href="https://github.com/Esri/i3s-spec"&gt;this format&lt;/A&gt; to hold the geometry data. &amp;nbsp;You might be able to use arcgis pro to create the geometry you're after and serve it up to the JS API somehow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option would be to use externalRenderers to create the geometry you want and render it as part of the scene. &amp;nbsp;I've played around with this using Three.js and it should be doable, though it would take&amp;nbsp;some work. I might reply to this thread later if I get a chance to make a sample for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 17:53:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polygonsymbol3d-with-fillsymbol3dlayer-draped-at/m-p/281514#M25996</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-06-01T17:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: PolygonSymbol3D with FillSymbol3DLayer draped at elevation above ground level</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polygonsymbol3d-with-fillsymbol3dlayer-draped-at/m-p/281515#M25997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much for your help so far. I was also at the MeshSymbol3D, but was not sure&amp;nbsp;what kind of geometry I would need in my graphic to have&amp;nbsp;the MeshSymbol3D render it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A sample would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jamie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 17:57:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polygonsymbol3d-with-fillsymbol3dlayer-draped-at/m-p/281515#M25997</guid>
      <dc:creator>JamesEyre</dc:creator>
      <dc:date>2017-06-01T17:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: PolygonSymbol3D with FillSymbol3DLayer draped at elevation above ground level</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polygonsymbol3d-with-fillsymbol3dlayer-draped-at/m-p/281516#M25998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a sample I made based on the externalRenderers sample in the JS API SDK:&amp;nbsp;&lt;A class="link-titled" href="https://jsbin.com/xonenor/1/edit?html,output" title="https://jsbin.com/xonenor/1/edit?html,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on the map to add a square of material X meters over the terrain that conforms to the terrain. &amp;nbsp;I set it to be a mesh, but you can make it solid. &amp;nbsp;The width, resolution, and height above ground are also adjustable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This uses Three.js from a CDN to handle the creation and placement of the geometry and some code to sample the terrain elevation where the geometry is placed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping to keep looking at this to see how mesh geometries are rendered in a scene layer situation.&amp;nbsp; This should be possible&amp;nbsp;without Three.js and with arbitrarily shaped polygons.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2017 00:36:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polygonsymbol3d-with-fillsymbol3dlayer-draped-at/m-p/281516#M25998</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-06-04T00:36:13Z</dc:date>
    </item>
  </channel>
</rss>

