Selva Compute API Reference - v2.1.0
    Preparing search index...

    Interface MeshMetadata

    Metadata for a single mesh within a batch.

    Offsets and counts are expressed in vertex-count units (not float components) and index-count units. To address the typed-array storage:

    • vertex component offset = vertexStart * 3
    • vertex component count = vertexCount * 3
    • index byte offset = indexStart * 4
    • index count = indexCount
    interface MeshMetadata {
        indexCount: number;
        indexStart: number;
        layer: string;
        metadata?: Record<string, string>;
        name: string;
        originalIndex: number;
        vertexCount: number;
        vertexStart: number;
    }
    Index

    Properties

    indexCount: number

    Number of indices in this mesh (3 per triangle).

    indexStart: number

    Index of this mesh's first index in the combined index array, in index-count units.

    layer: string

    Layer path for grouping in the scene manager (e.g. 'Structure/Walls')

    metadata?: Record<string, string>

    Arbitrary key-value pairs from the GH Metadata input

    name: string
    originalIndex: number

    Original index in the GH input tree before material grouping. Combined with MeshBatch.sourceComponentId to uniquely identify the GH source geometry.

    vertexCount: number

    Number of vertices in this mesh (each vertex is 3 components: x, y, z).

    vertexStart: number

    Index of this mesh's first vertex in the combined vertex array, in vertex-count units. The corresponding component offset into the int16/float32 typed array is vertexStart * 3.