wasm-spatial-core
    Preparing search index...

    Function encodeQuantizedMesh

    • Encode a height matrix into a Cesium quantized-mesh terrain tile.

      Arguments

      • heights — Float32Array, row-major (width × height)
      • width — number of columns
      • height — number of rows
      • bounds — Float64Array [min_lng, min_lat, max_lng, max_lat]
      • center — Float64Array [x, y, z] in ECEF

      Returns

      QuantizedMeshResult with the binary data.

      Parameters

      • heights: Float32Array
      • width: number
      • height: number
      • bounds: Float64Array
      • center: Float64Array

      Returns QuantizedMeshResult