Cesium3DTilesTerrainData

Terrain data for a single tile where the terrain data is represented as a glb (binary glTF).

See also

Constructors

Link copied to clipboard

Types

Link copied to clipboard

Properties

Link copied to clipboard
open override var credits: ERROR CLASS: Symbol not found for ReadonlyArray<cesium/engine/Credit>

An array of credits for this tile.

Link copied to clipboard
open override var waterMask: ERROR CLASS: Symbol not found for JsAny??

The water mask included in this terrain data, if any. A water mask is a rectangular Uint8Array or image where a value of 255 indicates water and a value of 0 indicates land. Values in between 0 and 255 are allowed as well to smoothly blend between land and water.

Functions

Link copied to clipboard
open override fun interpolateHeight(rectangle: Rectangle, longitude: Double, latitude: Double): Double

Returns the terrain height at a specified longitude and latitude, or undefined if the mesh is undefined.

Link copied to clipboard
open override fun isChildAvailable(thisX: Double, thisY: Double, childX: Double, childY: Double): Boolean

Determines if a given child tile is available, based on the TerrainData.childTileMask. The given child tile coordinates are assumed to be one of the four children of this tile. If non-child tile coordinates are given, the availability of the southeast child tile is returned.

Link copied to clipboard
suspend fun upsample(tilingScheme: TilingScheme, thisX: Double, thisY: Double, thisLevel: Int, descendantX: Double, descendantY: Double, descendantLevel: Int): TerrainData?

Upsamples this terrain data for use by a descendant tile.

Link copied to clipboard
open override fun upsampleAsync(tilingScheme: TilingScheme, thisX: Double, thisY: Double, thisLevel: Int, descendantX: Double, descendantY: Double, descendantLevel: Int): ERROR CLASS: Symbol not found for Promise<cesium/engine/TerrainData>??

Upsamples this terrain data for use by a descendant tile.

Link copied to clipboard
open override fun wasCreatedByUpsampling(): Boolean

Gets a value indicating whether or not this terrain data was created by upsampling lower resolution terrain data. If this value is false, the data was obtained from some other source, such as by downloading it from a remote server. This method should return true for instances returned from a call to Cesium3DTilesTerrainData.upsample.