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

HeightReference.CLAMP_TO_GROUND Can't clame to ground #10274

Closed
gitgitczl opened this issue Apr 5, 2022 · 4 comments
Closed

HeightReference.CLAMP_TO_GROUND Can't clame to ground #10274

gitgitczl opened this issue Apr 5, 2022 · 4 comments

Comments

@gitgitczl
Copy link

When I draw a polygon and set Cesium.Heightreference.CLAMP_ TO_ Group, but some polygons will not be displayed. The terrain used here is ArcGISTiledElevationTerrainProvider.
like this,The lower right corner is not shown.
image
this is my code:
image

@ggetz
Copy link
Contributor

ggetz commented Apr 6, 2022

Hi @gitgitczl. I'm having trouble reproducing the issue with this sandcastle example which uses an ArcGISTiledElevationTerrainProvider. Can you provide the positions which you're seeing the issue with?

@gitgitczl
Copy link
Author

gitgitczl commented Apr 7, 2022

ok.Thank you for your help.this is my positions.
`const kmlData =
[{ "x": 37.98687453755564, "y": -122.45322404219581, "z": 0.0 }, { "x": 37.985523140145915, "y": -122.45322402653679, "z": 0.0 }, { "x": 37.983834554207704, "y": -122.45007250299474, "z": 0.0 }, { "x": 37.984085361076765, "y": -122.4493854604648, "z": 0.0 }, { "x": 37.98475797590966, "y": -122.44834404879718, "z": 0.0 }, { "x": 37.9869980801418, "y": -122.44794628816878, "z": 0.0 }, { "x": 37.98687453755564, "y": -122.45151654965713, "z": 0.0 }, { "x": 37.98687453755564, "y": -122.45322404219581, "z": 0.0 }];

let positions = [];
for (let i = 0; i < kmlData.length; i++) {
    let item = kmlData[i];
    positions.push(Cesium.Cartesian3.fromDegrees(item.y, item.x));
}

`
@ggetz

@ggetz
Copy link
Contributor

ggetz commented Apr 8, 2022

Thanks @gitgitczl, I'm able to reproduce your issue with those positions. This does appear to be a bug. We'll update this ticket when we're able to take a look.

@ggetz
Copy link
Contributor

ggetz commented Jul 20, 2023

I believe this is actually a duplicate of #8480. I'll mention this report in that issue to keep everything in one place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment