Erroneous lines draw on Scene with polylines

1084
9
01-18-2018 07:19 AM
DavidHope
New Contributor III

My code is drawing country and state borders on a Globe using Polylines

This was working fine in 100.1, I upgraded to 100.2 today and now I'm seeing this...

Any thoughts?

0 Kudos
9 Replies
dotMorten_esri
Esri Notable Contributor

Yikes. Are you able to share a repro. so we can see if we can fix it (and possible give you a workaround)

0 Kudos
DavidHope
New Contributor III

Pretty simple, add virtually any complex polyline with absolute and dynamic settings (problems also occur with draped vs. absolute, but not as extreme)....

An example:

 GraphicsOverlay mapOL = new GraphicsOverlay();
 mapOL.SceneProperties.SurfacePlacement = SurfacePlacement.Absolute;
 mapOL.RenderingMode = GraphicsRenderingMode.Dynamic;
 Random rnd = new Random();
 for(int i = 0; i<100; i++)
 {
    var lineSymbol = new SimpleLineSymbol() { Color = Colors.White };
    var polyLine1 = new PolylineBuilder(SpatialReferences.Wgs84);
    double lat = 30 + (rnd.NextDouble() * 20);
    double lon = -125 + (rnd.NextDouble() * 60);
    for (int j = 0; j<100; j++)
    {
       lat += 0.5 - (rnd.NextDouble());
       lon += 0.5 - (rnd.NextDouble());
       polyLine1.AddPoint(lon, lat, 1000);
    }
    mapOL.Graphics.Add(new Graphic() 
      { 
         Geometry = polyLine1.ToGeometry(), 
         Symbol = lineSymbol, 
         ZIndex=5
      });
 }
dotMorten_esri
Esri Notable Contributor

Thank you! I've reproduced the issue and forwarded it to the 3D rendering team

0 Kudos
dotMorten_esri
Esri Notable Contributor

Problem identified and fix incoming. Expected* to be available in an soon to be released patch update..

Thank you for reporting this!

*pending the usual caveats that it's still in testing, release plans can change etc.

0 Kudos
DavidHope
New Contributor III

Do I get bonus points?

dotMorten_esri
Esri Notable Contributor

But of course!

0 Kudos
dotMorten_esri
Esri Notable Contributor

Just to follow up that fix has been made and tested, so should be in the next release.

0 Kudos
dotMorten_esri
Esri Notable Contributor

Please try again using v100.2.1 that we just released and see if that doesn't make the lines a lot better looking.

0 Kudos
PengfeiLi
New Contributor II

Thank you for the bug report.

0 Kudos