<?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: SceneView won't render polygon with hole in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/sceneview-won-t-render-polygon-with-hole/m-p/492474#M6051</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Christopher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was very helpful. Even more so, because while looking at Geometry Engine, I discovered that I could use the GeometryEngine.Difference method to do exactly what I wanted to do (and it makes sure that polygons are all spinning the correct direction).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Feb 2017 18:20:34 GMT</pubDate>
    <dc:creator>DavidHope</dc:creator>
    <dc:date>2017-02-01T18:20:34Z</dc:date>
    <item>
      <title>SceneView won't render polygon with hole</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/sceneview-won-t-render-polygon-with-hole/m-p/492471#M6048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Referencing the attached picture&lt;/P&gt;&lt;P&gt;&lt;IMG alt="polygon with hole issue" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/313125_polgon_with_hole.png" style="width: 620px; height: 412px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both Views (SceneView on the left, MapView on the right) have a single, multi-part polygon added to a single graphics overlay. The problem is that the MapView correctly shows the hole in the polygon, but the sceneview doesn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Full project attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any sugguestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code looks as follows:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt; var mapOL = new GraphicsOverlay();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt; mapOL.SceneProperties.SurfacePlacement = SurfacePlacement.Draped;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt; var listpc = new List&amp;lt;Esri.ArcGISRuntime.Geometry.PointCollection&amp;gt;();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt; var pc1 = new Esri.ArcGISRuntime.Geometry.PointCollection(SpatialReferences.Wgs84);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt; pc1.Add(-5, -5, 10);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt; pc1.Add(5, -5, 10);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt; pc1.Add(5, 5, 10);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt; pc1.Add(-5, 5, 10);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt;listpc.Add(pc1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt;var pc2 = new Esri.ArcGISRuntime.Geometry.PointCollection(SpatialReferences.Wgs84);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt; pc2.Add(-2, -2, 10);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt; pc2.Add(2, -2, 10);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt; pc2.Add(2, 2, 10);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt; pc2.Add(-2, 2, 10);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt;listpc.Add(pc2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt;var poly1 = new Polygon(listpc);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt;var g1 = new Graphic(poly1, new SimpleFillSymbol() { Color = Colors.Red, Outline = new SimpleLineSymbol() { Color = Colors.Black, Width = 2, Style = SimpleLineSymbolStyle.Solid }, Style = SimpleFillSymbolStyle.Null }) { ZIndex = 2 };&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt;mapOL.Graphics.Add(g1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt;var poly2 = new Polygon(listpc);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt; var g2 = new Graphic(poly1, new SimpleFillSymbol() { Color = Colors.Red, Outline = new SimpleLineSymbol() { Color = Colors.Transparent, Width = 0, Style = SimpleLineSymbolStyle.Null }, Style = SimpleFillSymbolStyle.Solid }) { ZIndex = 1 };&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt;mapOL.Graphics.Add(g2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt;_mapgraphicsOverlays.Clear();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt;_mapgraphicsOverlays.Add(mapOL);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: terminal, monaco, monospace; font-size: 12px;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 15:57:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/sceneview-won-t-render-polygon-with-hole/m-p/492471#M6048</guid>
      <dc:creator>DavidHope</dc:creator>
      <dc:date>2017-02-01T15:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: SceneView won't render polygon with hole</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/sceneview-won-t-render-polygon-with-hole/m-p/492472#M6049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BTW, I've discovered that if I reverse the order of the points in the interior polygon, it then works on the SceneView also...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 16:14:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/sceneview-won-t-render-polygon-with-hole/m-p/492472#M6049</guid>
      <dc:creator>DavidHope</dc:creator>
      <dc:date>2017-02-01T16:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: SceneView won't render polygon with hole</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/sceneview-won-t-render-polygon-with-hole/m-p/492473#M6050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran into a maybe-related issue when building polygons. &amp;nbsp;I found that if there is a donut the inner ring must always be counter-clockwise. &amp;nbsp;You can use the Simplify command to fix them, at least I think it can always fix them. &amp;nbsp;I found the note at the bottom of the polygon builder docs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;STRONG style="color: #000000;"&gt;Note:&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt; Interior rings to make donut polygons should be counter-clockwise in direction to be topology correct. If there is ever a doubt about the topological correctness of a polygon, call the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/net/latest/wpf/api-reference//html/M_Esri_ArcGISRuntime_Geometry_GeometryEngine_Simplify.htm" style="color: #03697a;"&gt;Simplify(Geometry)&lt;/A&gt;&lt;SPAN style="color: #000000;"&gt; method to correct any issues. This is especially true if you pass a polygon to ArcGIS Server for a geoprocessing task to avoid any ArcGIS Server errors being thrown.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/api-reference//html/T_Esri_ArcGISRuntime_Geometry_PolygonBuilder.htm" title="https://developers.arcgis.com/net/latest/wpf/api-reference//html/T_Esri_ArcGISRuntime_Geometry_PolygonBuilder.htm"&gt;PolygonBuilder Class&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the reference for Simplify as well:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/api-reference//html/M_Esri_ArcGISRuntime_Geometry_GeometryEngine_Simplify.htm" title="https://developers.arcgis.com/net/latest/wpf/api-reference//html/M_Esri_ArcGISRuntime_Geometry_GeometryEngine_Simplify.htm"&gt;GeometryEngine.Simplify Method&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;Christopher&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 17:40:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/sceneview-won-t-render-polygon-with-hole/m-p/492473#M6050</guid>
      <dc:creator>MoreHavoc</dc:creator>
      <dc:date>2017-02-01T17:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: SceneView won't render polygon with hole</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/sceneview-won-t-render-polygon-with-hole/m-p/492474#M6051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Christopher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was very helpful. Even more so, because while looking at Geometry Engine, I discovered that I could use the GeometryEngine.Difference method to do exactly what I wanted to do (and it makes sure that polygons are all spinning the correct direction).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 18:20:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/sceneview-won-t-render-polygon-with-hole/m-p/492474#M6051</guid>
      <dc:creator>DavidHope</dc:creator>
      <dc:date>2017-02-01T18:20:34Z</dc:date>
    </item>
  </channel>
</rss>

