cesium
QuantizedMeshTerrainData
class
QuantizedMeshTerrainData extends Object with TerrainData
Instance Constructors
-
-
new
QuantizedMeshTerrainData()
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hasOwnProperty(v: String): Boolean
-
def
hashCode(): Int
-
def
interpolateHeight(rectangle: Rectangle, longitude: Double, latitude: Double): Double
-
def
isChildAvailable(thisX: Double, thisY: Double, childX: Double, childY: Double): Boolean
-
final
def
isInstanceOf[T0]: Boolean
-
def
isPrototypeOf(v: Object): Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
propertyIsEnumerable(v: String): Boolean
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toLocaleString(): String
-
def
toString(): String
-
def
upsample(tilingScheme: TilingScheme, thisX: Double, thisY: Double, thisLevel: Double, descendantX: Double, descendantY: Double, descendantLevel: Double): |[Promise[TerrainData], Unit]
-
def
valueOf(): Any
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
wasCreatedByUpsampling(): Boolean
-
var
waterMask: |[|[Uint8Array, HTMLImageElement], HTMLCanvasElement]
Inherited from Object
Inherited from Any
Inherited from AnyRef
Inherited from Any
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:
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 });
HeightmapTerrainData
TerrainData