• Extracts vertex positions and indices of the specified endianness from `data'.

    The vertexByteOffset specifies the byte offset into `data' of the start of the vertex position data. The vertex data must consist of verticesPerPrimitive * numVertices 32-bit float values.

    If indexByteOffset is not specified, it defaults to the end of the vertex position data. If numPrimitives is not specified, it is assumed that the index data continues until the end of the array.

    Parameters

    • verticesPerPrimitive: number
    • data: ArrayBuffer
    • endianness: Endianness
    • vertexByteOffset: number
    • numVertices: number
    • Optional indexByteOffset: number
    • Optional numPrimitives: number

    Returns RawMeshData

Generated using TypeDoc