The QuantizedMeshLoader
module reconstructs mesh surfaces from the quantized
mesh format.
Loader | Characteristic |
---|---|
File Extension | .terrain |
File Type | Binary |
File Format | Encoded mesh |
Data Format | Mesh |
Supported APIs | load , parse , parseSync |
Decoder Type | Synchronous |
Worker Thread Support | Yes |
Streaming Support | No |
import {QuantizedMeshLoader} from '@loaders.gl/terrain';
import {load} from '@loaders.gl/core';
const options = {
'quantized-mesh': {
bounds: [0, 0, 1, 1]
}
};
const data = await load(url, QuantizedMeshLoader, options);
Option | Type | Default | Description |
---|---|---|---|
quantized-mesh.bounds | array<number> | [0, 0, 1, 1] | Bounds of the image to fit x,y coordinates into. In [minX, minY, maxX, maxY] . |
terrain.skirtHeight | number | null | If set, create the skirt for the tile with particular height in meters |