/** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ import { Extension } from "./Extension"; import { Extras } from "./Extras"; import { BoundingVolume } from "./BoundingVolume"; import { TileContent } from "./TileContent"; /** * A tile in a 3D Tiles tileset. */ export interface Tile { /** * The bounding volume that encloses the tile. */ boundingVolume: BoundingVolume; /** * Optional bounding volume that defines the volume the viewer must be inside of before the tile's content will be requested and before the tile will be refined based on geometricError. */ viewerRequestVolume?: BoundingVolume; /** * The error, in meters, introduced if this tile is rendered and its children are not. At runtime, the geometric error is used to compute screen space error (SSE), i.e., the error measured in pixels. */ geometricError: number; /** * Specifies if additive or replacement refinement is used when traversing the tileset for rendering. This property is required for the root tile of a tileset; it is optional for all other tiles. The default is to inherit from the parent tile. */ refine?: "ADD" | "REPLACE"; /** * A floating-point 4x4 affine transformation matrix, stored in column-major order, that transforms the tile's content--i.e., its features as well as content.boundingVolume, boundingVolume, and viewerRequestVolume--from the tile's local coordinate system to the parent tile's coordinate system, or, in the case of a root tile, from the tile's local coordinate system to the tileset's coordinate system. transform does not apply to geometricError, nor does it apply any volume property when the volume is a region, defined in EPSG:4979 coordinates. */ transform?: [ number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number ]; content?: TileContent; /** * An array of objects that define child tiles. Each child tile content is fully enclosed by its parent tile's bounding volume and, generally, has a geometricError less than its parent tile's geometricError. For leaf tiles, the length of this array is zero, and children may not be defined. */ children?: Tile[]; extensions?: Extension; extras?: Extras; }