Companion

Properties

Link copied to clipboard

Specifies the quality of terrain created from heightmaps. A value of 1.0 will ensure that adjacent heightmap vertices are separated by no more than Globe.maximumScreenSpaceError screen pixels and will probably go very slowly. A value of 0.5 will cut the estimated level zero geometric error in half, allowing twice the screen pixels between adjacent heightmap vertices and thus rendering more quickly.

Functions

fun getEstimatedLevelZeroGeometricErrorForAHeightmap(ellipsoid: Ellipsoid, tileImageWidth: Double, numberOfTilesAtLevelZero: Int): Double

Determines an appropriate geometric error estimate when the geometry comes from a heightmap.

Link copied to clipboard
fun getRegularGridIndices(width: Double, height: Double): TypedArray<*, *, *, *>

Gets a list of indices for a triangle mesh representing a regular grid. Calling this function multiple times with the same grid width and height returns the same list of indices. The total number of vertices must be less than or equal to 65536.