• Creates a BufferGeometry from given geometry data arrays

    Parameters

    • vertices: Float32Array<ArrayBufferLike>

      vertex data with 3 number per vertex (XYZ)

    • indices: Uint32Array<ArrayBufferLike>

      index data with 3 indices per face

    • vertexColors: Float32Array<ArrayBufferLike> = undefined

      color data with 3 or 4 number per vertex. RBG or RGBA

    • colorSize: number = 3

      specify whether to treat colors as RGB or RGBA

    Returns THREE.BufferGeometry

    a BufferGeometry