Skip to content
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

PolygonGraphics (crossing equator?) rendering problems. #3995

Closed
dwhipps opened this issue Jun 3, 2016 · 2 comments
Closed

PolygonGraphics (crossing equator?) rendering problems. #3995

dwhipps opened this issue Jun 3, 2016 · 2 comments

Comments

@dwhipps
Copy link
Contributor

dwhipps commented Jun 3, 2016

I have created an entity using PolygonGraphics with points which cross the equator, and it seems to miss certain points.

To highlight the issue I have added the positions as point entities, and named them with their index. You can see that the polygon line goes from point 4 to point 10, skipping 5-9.

See here:
http://cesiumjs.org/Cesium/Apps/Sandcastle/?src=Hello%20World.html&label=Showcases&gist=ace120c26cee85243bcf9b48dddff52f

@hpinkos
Copy link
Contributor

hpinkos commented Jun 3, 2016

Thanks for the example @dwhipps! This looks like a polygon triangulation error. It's most likely related to this problem: #2788
We're currently investigating using a new triangulation library that should be able to correctly render some of these more oddly shaped polygons. We'll make sure it fixes this one as well.
In the meantime, if you break up your polygon into two pieces so it doesn't wrap so much of the globe, it should render correctly.

@pjcozzi
Copy link
Contributor

pjcozzi commented Jun 14, 2017

Thanks for the code example, @dwhipps!

The latest triangulation library does not fix this. I'm pretty sure it is due to the polygon being projected to a tangent plan that distorts a polygon of this size.

I've consolidated this issue with #4871.

In the meantime, a workaround is to break this up into two polygons.

@pjcozzi pjcozzi closed this as completed Jun 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants