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

Cesium polygon entities display with missing vertex #6335

Closed
jionghui opened this issue Mar 15, 2018 · 1 comment
Closed

Cesium polygon entities display with missing vertex #6335

jionghui opened this issue Mar 15, 2018 · 1 comment

Comments

@jionghui
Copy link

jionghui commented Mar 15, 2018

There are 4 vertices created for the polygon entities, however, there are only 3 vertices displayed as shown below.
capture

Tested on 1.43.0 :

var viewer = new Cesium.Viewer('cesiumContainer');
var entities = viewer.entities;
var arrPosList = [116.71705, 2.44717966, 18.6,
                  116.71705, 2.44717966, 7.1,
                  116.71704, 2.44719318, 7.1,
                  116.71704, 2.44719315, 18.6];
entities.add({
	polygon : {
		hierarchy : Cesium.Cartesian3.fromDegreesArrayHeights(arrPosList),
		perPositionHeight : true,
		material : Cesium.Color.fromRandom({alpha : 1.0})
	}
});
viewer.flyTo(viewer.entities);
@ggetz
Copy link
Contributor

ggetz commented Mar 15, 2018

Hi @jionghui, the polygon primitive is designed to conform to the curvature of the ellipsoid, so it doesn't work for arbitrary polygons in space. See more discussion in #5907

Closing as a duplicate of #3349

Since you are trying to create a vertical polygon, maybe a wall will work for you.

@ggetz ggetz closed this as completed Mar 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants