gophergfx
    Preparing search index...

    Class MeshLoader

    Index
    • Loads a GLTF file asynchronously.

      Parameters

      • filename: string

        The relative path to the file

      • callback: ((rootNode: Node3) => void) | null = null

        An optional callback that is called when the file has been loaded

      • recursive: boolean = true

      Returns Node3

      A new Node3 object that will act as the root of the model once it is finished loading. Note, it will only contain the model data AFTER the asynchronous loading is complete.

    • Loads an OBJ file asynchronously

      Parameters

      • filename: string

        The relative path to the OBJ file

      • callback: ((loadedMesh: Mesh3) => void) | null = null

        An optional callback that is called when the file has been loaded

      Returns Mesh3

      The Mesh3 object created to hold the model. Note, it will only contain the model data AFTER the asynchronous loading is complete.

    • Loads a PLY file asynchronously

      Parameters

      • filename: string

        The relative path to the PLY file

      • callback: ((loadedMesh: Mesh3) => void) | null = null

        An optional callback that is called when the file has been loaded

      Returns Mesh3

      The Mesh3 object created to hold the model. Note, it will only contain the model data AFTER the asynchronous loading is complete.