Get Terrain Data (HeightMap Or Quantized-Mesh)

Hello,

I want to access the data of an area I want on the terrain in Cesium js, how can I do this?
If I need to explain in detail, let’s assume that I have determined an area by providing coordinate information or drawing a polygon. I want to access the data that makes up this field. If the data type is heightMap, I want to get heightMap data, and if Quantized-Mesh, I want to get Quantized-Mesh data. How can I do it ?

Kind regards.

please check this.

Thanks for your response, I’ll look into it.
The reason I want terrain data is to create a viewshed with JS using this data.
How do you think I can do this? Do you have an idea or a ready-made project for viewshed (visibility analysis)?

Do you have the code of this project ?