melonJS
    Preparing search index...

    Interface MeshGeometrySource

    What TriangleMesh3d.fromMesh and ConvexHull3d.fromMesh read from a Mesh: its geometry as loaded, and how it is placed. Pass the mesh itself, a glTF part or a Sprite3d included.

    interface MeshGeometrySource {
        currentTransform: Matrix3d;
        indices?: ArrayLike<number>;
        meshScale: number;
        originalVertices: ArrayLike<number>;
        rightHanded?: boolean;
        vertexCount: number;
    }
    Index
    currentTransform: Matrix3d

    the mesh's turn and stretch

    indices?: ArrayLike<number>

    the triangles, three vertex indices each

    meshScale: number

    the uniform scale the mesh is drawn at

    originalVertices: ArrayLike<number>

    the vertices as loaded, [x, y, z, ...]

    rightHanded?: boolean

    whether the source is right-handed (glTF)

    vertexCount: number

    how many vertices there are