Bitbybit Docs
    Preparing search index...

    Type Alias IndexedMesh (Inputs.Base)

    A mesh whose points are stored once and whose triangles refer to them by number, the layout glTF and game engines draw. positions holds x, y, z for each point in turn, indices three point numbers, counted from 0, for each triangle, and normals, when present, one direction x, y, z for each point. Triangles that share a corner share its number, which is how the mesh knows its neighbours.

    type IndexedMesh = {
        positions: number[];
        indices: number[];
        normals?: number[];
    }
    Index

    Properties

    positions: number[]
    indices: number[]
    normals?: number[]