TerrainMesh - Cesium Documentation

# TerrainMesh

#### new TerrainMesh(center, vertices, indices, minimumHeight, maximumHeight, boundingSphere3D, occludeePointInScaledSpace, vertexStride, orientedBoundingBox)

  A mesh plus related metadata for a single tile of terrain. Instances of this type are usually created from raw `TerrainData`.

  Name | Type | Default | Description
  --- | --- | --- | ---
  `center` | Cartesian3 |  | The center of the tile. Vertex positions are specified relative to this center.
  `vertices` | Float32Array |  | The vertex data, including positions, texture coordinates, and heights. The vertex data is in the order [X, Y, Z, H, U, V], where X, Y, and Z represent the Cartesian position of the vertex, H is the height above the ellipsoid, and U and V are the texture coordinates.
  `indices` | Uint16Array | Uint32Array |  | The indices describing how the vertices are connected to form triangles.
  `minimumHeight` | Number |  | The lowest height in the tile, in meters above the ellipsoid.
  `maximumHeight` | Number |  | The highest height in the tile, in meters above the ellipsoid.
  `boundingSphere3D` | BoundingSphere |  | A bounding sphere that completely contains the tile.
  `occludeePointInScaledSpace` | Cartesian3 |  | The occludee point of the tile, represented in ellipsoid- scaled space, and used for horizon culling. If this point is below the horizon, the tile is considered to be entirely below the horizon.
  `vertexStride` | Number | `6` | optional The number of components in each vertex.
  `orientedBoundingBox` | OrientedBoundingBox |  | optional A bounding sphere that completely contains the tile.

  Source: Core/TerrainMesh.js, line 30

### Members

#### boundingSphere3D :BoundingSphere

  A bounding sphere that completely contains the tile.
  Source: Core/TerrainMesh.js, line 77

#### center :Cartesian3

  The center of the tile. Vertex positions are specified relative to this center.
  Source: Core/TerrainMesh.js, line 35

#### indices :Uint16Array|Uint32Array

  The indices describing how the vertices are connected to form triangles.
  Source: Core/TerrainMesh.js, line 59

#### maximumHeight :Number

  The highest height in the tile, in meters above the ellipsoid.
  Source: Core/TerrainMesh.js, line 71

#### minimumHeight :Number

  The lowest height in the tile, in meters above the ellipsoid.
  Source: Core/TerrainMesh.js, line 65

#### occludeePointInScaledSpace :Cartesian3

  The occludee point of the tile, represented in ellipsoid- scaled space, and used for horizon culling. If this point is below the horizon, the tile is considered to be entirely below the horizon.
  Source: Core/TerrainMesh.js, line 85

#### orientedBoundingBox :OrientedBoundingBox

  A bounding box that completely contains the tile.
  Source: Core/TerrainMesh.js, line 91

#### stride :Number

  The number of components in each vertex. Typically this is 6 for the 6 components [X, Y, Z, H, U, V], but if each vertex has additional data (such as a vertex normal), this value may be higher.
  Source: Core/TerrainMesh.js, line 53

#### vertices :Float32Array

  The vertex data, including positions, texture coordinates, and heights. The vertex data is in the order [X, Y, Z, H, U, V], where X, Y, and Z represent the Cartesian position of the vertex, H is the height above the ellipsoid, and U and V are the texture coordinates. The vertex data may have additional attributes after those mentioned above when the `TerrainMesh#stride` is greater than 6.
  Source: Core/TerrainMesh.js, line 45