getHeight
Get the height of the loaded surface at a given cartographic. This function will only take into account meshes for loaded tiles, not neccisarily the most detailed tiles available for a tileset. This function will always return undefined when sampling a point cloud.
const tileset = await Cesium3DTileset.fromIonAssetId(124624234);
scene.primitives.add(tileset);
const height = tileset.getHeight(scene.camera.positionCartographic, scene);
Content copied to clipboard
Return
The height of the cartographic or undefined if it could not be found.
Parameters
cartographic
The cartographic for which to find the height.
scene
The scene where visualization is taking place.