Taos API Reference
    Preparing search index...

    Class TileContent

    Loaded, rebased tile content. Owns the static GltfStaticModel (its non-skinned meshes + textures), all released on cache eviction.

    Implements

    Index

    Constructors

    Properties

    drawables: TileDrawable[]
    triangles: number

    Triangle count, for the triangle budget + stats.

    bytes: number

    Approximate GPU byte cost, for the memory budget + stats.

    lodLevel: number = 0

    Tile tree depth, for the tile-LOD debug view.

    fadeIn: number = 0

    LOD cross-fade alpha, 0→1. A freshly loaded tile starts at 0 and ramps to 1 over the fade window as it's drawn as the (fine) frontier; the coarser tile it replaces is drawn beneath it until this reaches 1, so the swap dissolves instead of popping. Persists on the cached content across frames (see Tileset3D).

    centerEcef?: Vec3d

    ECEF center of this tile's bounding volume, for locating it geographically (e.g. to clamp the content to terrain elevation). Undefined when unknown.

    bakeOriginEcef: Vec3d

    The floating-origin ECEF point the drawable matrices were baked against; used to re-shift them after the origin moves (origin shifting).

    bakeFrame?: FrameSnapshot

    Snapshot of the whole floating-origin frame (origin + ENU basis) the drawables were baked against. When the frame is REORIENTED (RTC), the draw loop places this content with frame.rigidFromSnapshot(bakeFrame) instead of a translation, so the reorientation needn't re-bake it. Undefined → translation-only origin shifting via bakeOriginEcef (the basis never changed).

    copyright?: string

    Raw glTF asset.copyright for this tile — Google Photorealistic ships a semicolon-separated list of the tile's data providers here. Undefined when the tile carries none. Tileset3D aggregates these across the visible tiles to build the on-screen attribution the Google Map Tiles Terms of Service require.

    featureTables?: FeatureTable[]

    Per-feature property tables for this tile — the b3dm batch table (one table) or the glTF EXT_structural_metadata property tables (one or more). The data behind "click a building, read its name/height/type". Undefined when the content carries no metadata. Picking maps a cursor → feature id → featureTables[t].getAll(id).

    pickMeshes?: PickableMesh[]

    CPU pick soup — world-space (bake-frame) positions + indices + per-vertex feature id — for ray-pick feature selection (pickFeature). Retained only when the tile is loaded pickable. The sample shifts the ray by this tile's origin-shift (its bakeOriginEcef) before calling, then looks the hit id up in featureTables. Undefined when not pickable / no feature ids.

    collision?: { positions: Float32Array; indices: Uint32Array }

    Optional CPU triangle soup of this tile's geometry, in the SAME origin-relative world space as the drawables (baked against bakeOriginEcef), merged across all primitives. Present only when loaded with collision: true. An app builds a physics collider from it (positions + indices), origin-shifting by frame.worldFromEcefPoint(bakeOriginEcef) exactly like a drawable.

    points?: PointCloudGpu

    Point-cloud payload for .pnts tiles — a baked, origin-relative GPU point buffer (positions + colors). Drawn by GeoPointCloudFeature (the mesh drawables are empty for a point tile). Undefined for mesh content.

    innerContents?: TileContent[]

    For a composite (.cmpt) tile: the inner tile contents it merged (their drawables / points are surfaced on this one). Destroying this destroys them instead of the (null) glTF / shared drawables.

    Methods