API

Interface I3mfVertexData

Interface used to define object data independaly of framework

interface I3mfVertexData {
    colors?: ThreeMfFloatArray | null;
    indices: ThreeMfIndicesArray | null;
    normals?: ThreeMfFloatArray | null;
    positions: ThreeMfFloatArray | null;
}
Index
colors?: ThreeMfFloatArray | null

An array of the r, g, b, a, color of each vertex [...., r, g, b, a, .....]

indices: ThreeMfIndicesArray | null

An array of i, j, k the three vertex indices required for each triangular facet [...., i, j, k .....]

normals?: ThreeMfFloatArray | null

An array of the x, y, z normal vector of each vertex [...., x, y, z, .....]

positions: ThreeMfFloatArray | null

An array of the x, y, z position of each vertex [...., x, y, z, .....]