Convert a terrain heightmap directly to a GLB mesh (TRIANGLES primitive mode).
Automatically generates normals from the height gradient.
heights
Float32Array
width
height
bounds
[west, south, east, north]
Uint8Array containing the complete GLB binary.
Uint8Array
Convert a terrain heightmap directly to a GLB mesh (TRIANGLES primitive mode).
Automatically generates normals from the height gradient.
Arguments
heights:Float32Arrayof elevation values (row-major, bottom-to-top or top-to-bottom)width: Number of columns in the gridheight: Number of rows in the gridbounds:[west, south, east, north]in geographic or projected coordinatesReturns
Uint8Arraycontaining the complete GLB binary.