Draw polygons!

Draw polygons!

Hello, the thing is that I am drawing a polygon according to the position in which the map is clicked in cesium, in CESIUM SANDCLASTLE my code works perfectly, but when I implement it in my application the polygon I draw it completely disproportionate.

In the following images I show as in SANDCASTLE if I draw the polygon perfectly and in my application no.

Does anyone know something.

Are you using the same exact code in Sandcastle as in your application? Does one have terrain turned on and one doesn’t?