-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue rendering outlines for polygons with many positions #7599
Comments
Thanks for including the Sandcastle example @ulrichson! It looks like something is going weird with computing the outline when the polygon is extruded. The outline looks correct if you remove the |
The problem is in the following line 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 |
Awesome @jbo023, thank you! Yes, please open a pull request when you can =) |
Thanks again @ulrichson, this has been fixed and will be included in the 1.55 release available March 1st |
As 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:
https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/index.html#c=zVZRU+M2EP4ral7ObnxyAjnmJgRahgvHTenBUFpKCQ/CVmINiuSRZJJww3/vyrYcxYEZ+tCb04ujXe23q+/bdTwtRGKYFGhGzYXUzP4+4lLMTilJmZgFE4FgScVmTETVJqtc9S5l2hCR0IkI0bfK9EgUUtL8gw7QMdWsmOPficmwkZcQSIQO+h97uIe6DincX8flUsPhdeSVgoCpVHONKdHmq1Qm+zO/kidsSdMTReY0qIrzQQxRcJ+/AaW3Zb0Bq6t5f6NeYmh6IZmw2eub2LUcOrxobVw5441nfBqiXrV7rpF9VLwEXFfZz6ikJJE6sEyF6H1TXu3STFSul6BW21DN+W2oJotPhuMVTii23JAK9gM8VXJeks+JbYpgfU2/ksrqA0+ZIPw10HnBDcv5ykOrBPdYbFXmeQRdtACDcLMARU2hhH/wmCgDv4jY9XJ6Nd72d+6iVzy7r3oGd+u8zxMxEVM3R4miQM6F5KsZkKZpYqTSkb1lOVsbM+KMGoi6vfM55Cw/Lvuw17Ja3VXhGhdYQoF1sfIoPEaoTgmbbjf0+7jJhvNCZx4bdr02/i4oQgGDdtrd64UoRs21ypJ+Qf0PPVhoiPoD+yNcYzth7PK4rO7X7b7oZVMUNAwcHKA+IPoX8RA8hnwPmH+yT8/1XA9m9Whx0Wxve3etVmpcTmlL9yOjC6ogi9dof5W24F1Sbo+lMIQJqt5ZvImIY3T+2xDt7lie1rq/P4TNikOroIVUDxoRjegyB3ppihZIFoYDiK6y2hOgSd1bkL0qA1NhAI5qTNI0+OYuWB0a+sRljCqikgxeXl7hNd6pcwabLVyWHG2PU/mC+ERnilIdfIzQYC8MI2jj0JuZnCrXVaeUzTIzRFPCNfWOZLW9zLI20yW0eUpTFzbYdM+hQMUIHzZ1SS4V/nw5Hn/FC2ayI55nJOjhD345NZ3DcoS27SVGC/H69MvVuGmd500xB/9FzFi+LOc1VAuO88r33VQdvEHV/s6PIevN+Ozs/PoNupZVtNUq9To5+nL2omJ1LMpALKZ14dS5V/KBiu89a29SZe/HUOVy/On/H7Wa9icJHyMyaIkQ7neizkibFaeHVeCvbJ7DFyIqFA8wjg2d5/D5QnV8XyQP1OBEa4s7il3QKGWPiKUHk07rvT3poIQTrcEzLTj/gz3RSedwFMP5jTAuyz/K80eqOFnZI1n/8KwyYoxHMWy3o4yU/J4oD/Ff
Browser: Chrome 72 & Firefox 65
Operating System: Ubuntu 18.04.2 LTS
The text was updated successfully, but these errors were encountered: