Hierarchy

  • GltfMesh

Constructors

Properties

BINARY_GLTF_EXTENSION: string = ".glb"
BINARY_GLTF_MIME_TYPE: string = "model/gltf.binary"
GLTF_EXTENSION: string = ".gltf"
GLTF_MIME_TYPE: string = "model/gltf+json"

Methods

  • Exports the given mesh as a binary gltf (.glb)

    Parameters

    • pMesh: Mesh

    Returns null | ArrayBuffer

  • Imports a binary gltf (.glb) given as an ArrayBuffer.

    Parameters

    • pBuffer: ArrayBuffer
    • pScene: Scene

    Returns null | Mesh[]

  • Imports a gltf file (.gltf or .glb) from an url.

    Parameters

    • pUrl: string
    • pScene: Scene

    Returns Promise<null | Mesh[]>

Generated using TypeDoc