CesiumGS / CesiumGS/cesium

2D/Columbus-view artifact with extent geometries at the pole

Open
#1,297 1 comment 0 reactions 1 assignee Claimed by @hpinkos View on GitHub
category - polygons/geometry type - bug
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

From https://groups.google.com/forum/#!forum/cesium-dev

In the [Geometry and Appearances Sandcastle example](http://cesium.agi.com/Cesium/Apps/Sandcastle/index.html?src=Geometry%20and%20Appearances.html&label=Showcases), replace Line 119 with

``` javascript
extent = Cesium.Extent.fromDegrees(-180.0, 45.0, -160.0, 90.0);
```

Given that `90.0` is at the pole, we get artifacts in 2D and columbus view.

3D:

![image](https://f.cloud.github.com/assets/782098/1550152/40bf7060-4dfc-11e3-8fe5-f144fc682fdd.png)

2D:

![image](https://f.cloud.github.com/assets/782098/1550149/2bf94ffc-4dfc-11e3-9723-2df6f7c8f285.png)

Using `89.99` instead of `90.0` does not cause artifacts.

Perhaps the geometry is optimizing for this in 3D and not introducing a northern row. If that's the case, we can pass an `allow3DOnly` option that defaults to `false`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.