我正在使用 ArcGIS Runtime .NET Quartz Beta
我有一个需要在 3D 场景视图上渲染大多边形的应用程序。
例如,我执行以下代码:
var ContourOverlayScene = CreateGraphicsOverlay("Contours");
MySceneView.GraphicsOverlays.Add(ContourOverlayScene);
List<MapPoint> combined = new List<MapPoint>();
combined.Add(new MapPoint(-160, 20, wgs84));
combined.Add(new MapPoint( 160, 20, wgs84));
combined.Add(new MapPoint( 160, -20, wgs84));
combined.Add(new MapPoint(-160, -20, wgs84));
var arcpoly = new Esri.ArcGISRuntime.Geometry.Polygon(combined, wgs84);
ContourOverlayScene.Graphics.Add(new Graphic() { Geometry = arcpoly, Symbol = new SimpleFillSymbol() { Color = Colors.Red } });
给了我这个结果(我期待多边形环绕地球的大部分区域)
因此,我将其更改为具有中间点,以试图迫使它在全球范围内传播,如下所示:
combined.Add(new MapPoint(-160, 20, wgs84));
combined.Add(new MapPoint(-40, 20, wgs84));
combined.Add(new MapPoint(40, 20, wgs84));
combined.Add(new MapPoint( 160, 20, wgs84));
combined.Add(new MapPoint( 160, -20, wgs84));
combined.Add(new MapPoint(40, -20, wgs84));
combined.Add(new MapPoint(-40, -20, wgs84));
combined.Add(new MapPoint(-160, -20, wgs84));
和得到的图片完全一样....
我将如何渲染我想要渲染的多边形?