threejs-worldgen
    Preparing search index...

    Interface MeshData

    Typed vertex attributes plus an index buffer: geometry as plain data (no three.js needed).

    interface MeshData {
        attributes: Record<string, Float32Array>;
        count: number;
        index: Uint32Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike>;
        itemSizes: Record<string, number>;
    }
    Index
    attributes: Record<string, Float32Array>

    Attribute arrays by name.

    count: number

    Vertex count.

    index: Uint32Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike>

    Triangle indices (16-bit when the vertex count allows).

    itemSizes: Record<string, number>

    Item size per attribute.