Documented 3d-tile state managed by the TilesRenderer* / used/usable in priority / traverseFunctions!

interface Tile {
    __active: boolean;
    __depth: number;
    __depthFromRenderedParent: number;
    __distanceFromCamera: number;
    __error: number;
    __inFrustum: boolean;
    __used: boolean;
    __visible: boolean;
    boundingVolume: {
        box?: number[];
        sphere?: number[];
    };
    children?: TileBase[];
    content?: {
        extensions?: Record<string, any>;
        extras?: Record<string, any>;
        uri: string;
        url?: string;
    };
    extensions?: Record<string, any>;
    extras?: Record<string, any>;
    geometricError: number;
    parent: Tile;
    refine?: "REPLACE" | "ADD";
    transform?: number[];
}

Hierarchy (view full)

Properties

__active: boolean

This tile is currently active if: 1: Tile content is loaded and ready to be made visible if needed

__depth: number

Hierarchy Depth from the TileGroup

__depthFromRenderedParent: number

TODO: Document this if it is useful enough to be the default property in the LRU sorting.

__distanceFromCamera: number

How far is this tiles bounds from the nearest active Camera. Expected to be filled in during calculateError implementations.

__error: number

The screen space error for this tile

__inFrustum: boolean

Whether or not the tile was within the frustum on the last update run.

__used: boolean

Whether or not the tile was visited during the last update run.

__visible: boolean

This tile is currently visible if: 1: Tile content is loaded 2: Tile is within a camera frustum 3: Tile meets the SSE requirements

boundingVolume: {
    box?: number[];
    sphere?: number[];
}

Type declaration

  • Optional box?: number[]

    An array of 12 numbers that define an oriented bounding box. The first three elements define the x, y, and z values for the center of the box. The next three elements (with indices 3, 4, and 5) define the x axis direction and half-length. The next three elements (indices 6, 7, and 8) define the y axis direction and half-length. The last three elements (indices 9, 10, and 11) define the z axis direction and half-length.

  • Optional sphere?: number[]

    An array of four numbers that define a bounding sphere. The first three elements define the x, y, and z values for the center of the sphere. The last element (with index 3) defines the radius in meters.

children?: TileBase[]
content?: {
    extensions?: Record<string, any>;
    extras?: Record<string, any>;
    uri: string;
    url?: string;
}

Type declaration

  • Optional extensions?: Record<string, any>

    Dictionary object with content specific extension objects.

  • Optional extras?: Record<string, any>
  • uri: string
  • Optional url?: string
extensions?: Record<string, any>

Dictionary object with tile specific extension objects.

extras?: Record<string, any>
geometricError: number

The error, in meters, introduced if this tileset is not rendered. At runtime, the geometric error is used to compute screen space error (SSE), i.e., the error measured in pixels.

parent: Tile
refine?: "REPLACE" | "ADD"
transform?: number[]