Class

cesium

QuantizedMeshTerrainData

Related Doc: package cesium

Permalink

class QuantizedMeshTerrainData extends Object with TerrainData

Terrain data for a single tile where the terrain data is represented as a quantized mesh. A quantized mesh consists of three vertex attributes, longitude, latitude, and height. All attributes are expressed as 16-bit values in the range 0 to 32767. Longitude and latitude are zero at the southwest corner of the tile and 32767 at the northeast corner. Height is zero at the minimum height in the tile and 32767 at the maximum height in the tile.

alias QuantizedMeshTerrainData

- The options object takes the following properties - {Uint16Array} options.quantizedVertices The buffer containing the quantized mesh. - {Uint16Array|Uint32Array} options.indices The indices specifying how the quantized vertices are linked together into triangles. Each three indices specifies one triangle. - {Number} options.minimumHeight The minimum terrain height within the tile, in meters above the ellipsoid. - {Number} options.maximumHeight The maximum terrain height within the tile, in meters above the ellipsoid. - {BoundingSphere} options.boundingSphere A sphere bounding all of the vertices in the mesh. - {OrientedBoundingBox} [options.orientedBoundingBox] An OrientedBoundingBox bounding all of the vertices in the mesh. - {Cartesian3} options.horizonOcclusionPoint The horizon occlusion point of the mesh. If this point is below the horizon, the entire tile is assumed to be below the horizon as well. The point is expressed in ellipsoid-scaled coordinates. - {Number[]} options.westIndices The indices of the vertices on the western edge of the tile. - {Number[]} options.southIndices The indices of the vertices on the southern edge of the tile. - {Number[]} options.eastIndices The indices of the vertices on the eastern edge of the tile. - {Number[]} options.northIndices The indices of the vertices on the northern edge of the tile. - {Number} options.westSkirtHeight The height of the skirt to add on the western edge of the tile. - {Number} options.southSkirtHeight The height of the skirt to add on the southern edge of the tile. - {Number} options.eastSkirtHeight The height of the skirt to add on the eastern edge of the tile. - {Number} options.northSkirtHeight The height of the skirt to add on the northern edge of the tile. - {Number} [options.childTileMask=15] A bit mask indicating which of this tile's four children exist. If a child's bit is set, geometry will be requested for that tile as well when it is needed. If the bit is cleared, the child tile is not requested and geometry is instead upsampled from the parent. The bit values are as follows:

Bit PositionBit ValueChild Tile
01Southwest
12Southeast
24Northwest
38Northeast
- {Boolean} [options.createdByUpsampling=false] True if this instance was created by upsampling another instance; otherwise, false. - {Uint8Array} [options.encodedNormals] The buffer containing per vertex normals, encoded using 'oct' encoding - {Uint8Array} [options.waterMask] The buffer containing the watermask.

Annotations
@RawJSType() @native() @JSName( "Cesium.QuantizedMeshTerrainData" )
Example:
  1. var data = new Cesium.QuantizedMeshTerrainData({ minimumHeight : -100, maximumHeight : 2101, quantizedVertices : new Uint16Array([// order is SW NW SE NE // longitude 0, 0, 32767, 32767, // latitude 0, 32767, 0, 32767, // heights 16384, 0, 32767, 16384]), indices : new Uint16Array([0, 3, 1, 0, 2, 3]), boundingSphere : new Cesium.BoundingSphere(new Cesium.Cartesian3(1.0, 2.0, 3.0), 10000), orientedBoundingBox : new Cesium.OrientedBoundingBox(new Cesium.Cartesian3(1.0, 2.0, 3.0), Cesium.Matrix3.fromRotationX(Cesium.Math.PI, new Cesium.Matrix3())), horizonOcclusionPoint : new Cesium.Cartesian3(3.0, 2.0, 1.0), westIndices : [0, 1], southIndices : [0, 1], eastIndices : [2, 3], northIndices : [1, 3], westSkirtHeight : 1.0, southSkirtHeight : 1.0, eastSkirtHeight : 1.0, northSkirtHeight : 1.0 });

See also

HeightmapTerrainData

TerrainData

Linear Supertypes
TerrainData, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. QuantizedMeshTerrainData
  2. TerrainData
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new QuantizedMeshTerrainData(options: QuantizedMeshTerrainDataOptions)

    Permalink
  2. new QuantizedMeshTerrainData()

    Permalink
    Attributes
    protected

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. def interpolateHeight(rectangle: Rectangle, longitude: Double, latitude: Double): Double

    Permalink
    Definition Classes
    TerrainData
  13. def isChildAvailable(thisX: Double, thisY: Double, childX: Double, childY: Double): Boolean

    Permalink
    Definition Classes
    TerrainData
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. def upsample(tilingScheme: TilingScheme, thisX: Double, thisY: Double, thisLevel: Double, descendantX: Double, descendantY: Double, descendantLevel: Double): |[Promise[TerrainData], Unit]

    Permalink
    Definition Classes
    TerrainData
  24. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def wasCreatedByUpsampling(): Boolean

    Permalink
    Definition Classes
    TerrainData
  29. var waterMask: |[|[Uint8Array, HTMLImageElement], HTMLCanvasElement]

    Permalink
    Definition Classes
    TerrainData

Inherited from TerrainData

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped