Issue rendering outlines for polygons with many positions
See original GitHub issueAs you can see in the screenshot there seems to be a problem rendering outlines for polygons with many positions (34000 positions in the hierarchy with extrudedHeight
in this case):
Green: 32000 positions, rendering ok w/ outlines Yellow: 34000 positions, rendering ok w/o outline Red: 34000 positions, rendering fails w/ outlines
Yellow and red have the same geometry.
Solid shapes seem to work but it looks like Cesium doesn’t connect the outlines right - at some point it seems they’re getting closed although they don’t enclose the complete geometry.
The Sandcastle example below uses the Entity API but the issue also exists with the Primitive API (using PolygonOutlineGeometry
).
Sandcastle example:
Browser: Chrome 72 & Firefox 65
Operating System: Ubuntu 18.04.2 LTS
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top GitHub Comments
The problem is in the following line
https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Core/PolygonOutlineGeometry.js#L200
If the line
is changed to
The Outline geometry is correct.
The function IndexDatatype.createTypedArray returns a UINT16Array which is not enough for the index range of 0 to 68000 (points + cornerPoints)
I could create a Pullrequest tomorrow
Thanks @hpinkos @jbo023 for the quick fix!