threejs-worldgen
    Preparing search index...

    Interface MeshData

    A mesh as typed arrays.

    interface MeshData {
        attr: Float32Array;
        bodyIndexCount: number;
        bounds: [number, number, number, number, number, number];
        index: Uint32Array;
        normal: Float32Array;
        position: Float32Array;
    }

    Hierarchy (View Summary)

    Index
    attr: Float32Array

    (s, h, part, w) per vertex; see the module docs.

    bodyIndexCount: number

    The first bodyIndexCount indices are the closed body; the rest are fins.

    bounds: [number, number, number, number, number, number]

    Axis-aligned bounds: [minX, minY, minZ, maxX, maxY, maxZ].

    index: Uint32Array

    Triangle indices.

    normal: Float32Array

    Unit normals, xyz per vertex.

    position: Float32Array

    xyz per vertex. Fish face +z (nose at z = 0.5, tail tip at z = −0.5), y up.