Taos API Reference
    Preparing search index...

    Interface PackedClusterData

    The compact, GPU-ready form of a cluster mesh — what ClusteredMesh uploads and serializeClusterDag writes. Descriptors / LOD records / bounds stay in real local-space units (the cull pass reads them unchanged); only the vertex pool and corner indices are quantized.

    interface PackedClusterData {
        clusterCount: number;
        vertexPool: Uint32Array;
        vertexCount: number;
        meshletVertices: Uint32Array;
        localIndices: Uint8Array;
        descriptors: Float32Array;
        lodInfo?: Float32Array<ArrayBufferLike>;
        parentIndex?: Uint32Array<ArrayBufferLike>;
        siblingGroupId?: Uint32Array<ArrayBufferLike>;
        childGroupId?: Uint32Array<ArrayBufferLike>;
        lodLevels: number;
        totalTriangles: number;
        bounds: {
            centerX: number;
            centerY: number;
            centerZ: number;
            radius: number;
        };
        quant: QuantGrid;
    }
    Index

    Properties

    clusterCount: number
    vertexPool: Uint32Array

    Packed vertices, PACKED_VERTEX_WORDS u32 each (position/normal/cavity).

    vertexCount: number

    Number of vertices in vertexPool.

    meshletVertices: Uint32Array

    Cluster-local → global vertex index (unchanged from the build).

    localIndices: Uint8Array

    Triangle corner → cluster-local vertex index, 0..63 (widened down to u8).

    descriptors: Float32Array

    Packed cluster descriptors (unchanged, real units).

    lodInfo?: Float32Array<ArrayBufferLike>

    Per-cluster LOD-DAG records (present for a DAG; unchanged, real units).

    parentIndex?: Uint32Array<ArrayBufferLike>

    Per-cluster representative parent cluster id (for streaming LOD fallback); present for a DAG. See ClusterDagData.parentIndex.

    siblingGroupId?: Uint32Array<ArrayBufferLike>

    Simplification-group ids (child side / parent side) for the S3c streaming cut.

    childGroupId?: Uint32Array<ArrayBufferLike>
    lodLevels: number

    Number of LOD levels (1 = single-LOD).

    totalTriangles: number
    bounds: { centerX: number; centerY: number; centerZ: number; radius: number }

    Overall local-space bounding sphere (real units).

    quant: QuantGrid

    Grid used to dequantize vertexPool; feed to the draw shader uniforms.