Hi, currently I’m exploring ways to generate gltf
/ obj
models from terrain mesh. My goal is to show 3d cut-fill volume calculation, something like the following -
This is a follow-up question of this one - Generate GLTF model from raster (DSM) instead of terrain - #3 by atul-sd but an entirely different approach
I realized that I don’t need to DEM to generate GLTF models. Terrain mesh already has all necessary information, if I can load this mesh in some tool and export it as GLTF/OBJ, that’ll solve the problem -
I need to figure out the following things -
- How can I get this mesh data (vertices, faces) from the tiles? I’ve gone through this question but still not sure - Terrain mesh to x3d. I’m able to get
QuantizedMeshTerrainData
fromrequestTileGeometry
method - How can I get mesh data only within a polygon (as shown in the first image), is there any built-in internal method, as I can’t find any method in public API
- Once I get the correct mesh data, which library will let me do the import/export? It would be much better if there is any library which directly reads
.terrain
files - I’ll prefer to do this whole mesh generation and conversion in the backend server. Is there any way to read tile outside the cesium (but just like cesium)
Thanks!