-
Notifications
You must be signed in to change notification settings - Fork 31
/
TileData.ts
39 lines (35 loc) · 855 Bytes
/
TileData.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { Header } from "./Header";
import { Table } from "./Table";
/**
* A representation of tile data.
*
* This interface covers Batched 3D Model (B3DM), Instanced
* 3D Model (I3DM), and Point Cloud (PNTS) data.
*
* Instances of this interface can be read from buffers
* with methods in the `TileFormats` class.
*/
export interface TileData {
/**
* The header of the tile data
*/
header: Header;
/**
* Feature table
*/
featureTable: Table;
/**
* Batch table
*/
batchTable: Table;
/**
* The payload.
*
* For B3DM tile data, this will contain binary glTF (GLB) data.
* For I3DM tile data, this will contain either a string (if
* `header.gltfFormat===0`, or binary glTF (GLB) data (if
* `header.gltfFormat===1`.
* For PNTS tile data, this will be an empty buffer.
*/
payload: Buffer;
}