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

InterpolateHeight compute height and returns undefined #11978

Open
chenchuliu opened this issue May 13, 2024 · 2 comments
Open

InterpolateHeight compute height and returns undefined #11978

chenchuliu opened this issue May 13, 2024 · 2 comments

Comments

@chenchuliu
Copy link

What happened?

When I use QuantizedMeshTerrainData.prototype.interpolateHeight to obtain the height of the current coordinates, it always returns undefined.
At this point, it's noticed that in the interpolateHeight function, the UV calculated for the input coordinates multiplied by maxShort. If this._mesh exists, the value of terrainData is encode, causing pointInBoundingBox to never succeed.

Reproduction steps

No response

Sandcastle example

No response

Environment

Browser:
CesiumJS Version:
Operating System:

@chenchuliu chenchuliu changed the title QuantizedMeshTerrainData InterpolateHeight obtains height and returns undefined continuously May 13, 2024
@chenchuliu chenchuliu changed the title InterpolateHeight obtains height and returns undefined continuously InterpolateHeight compute height and returns undefined May 13, 2024
@ggetz
Copy link
Contributor

ggetz commented May 15, 2024

Hi @chenchuliu, would you be able to include a Sandcastle example that replicates the issue? That would help us give us more context to determine the issue. Thanks!

@ggetz ggetz added the needs feedback On hold until additional info is supplied label May 15, 2024
@chenchuliu
Copy link
Author

@ggetz ggetz added category - terrain and imagery and removed needs feedback On hold until additional info is supplied needs triage labels May 16, 2024
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

2 participants