Matrix Engine Api Documentation - v1.9.0
    Preparing search index...

    Function downloadMeshes

    • Takes in an object of mesh_name, '/url/to/OBJ/file' pairs and a callback function. Each OBJ file will be ajaxed in and automatically converted to an OBJ.Mesh. When all files have successfully downloaded the callback function provided will be called and passed in an object containing the newly created meshes.

      Note: In order to use this function as a way to download meshes, a webserver of some sort must be used.

      Parameters

      • nameAndURLs: any

        an object where the key is the name of the mesh and the value is the url to that mesh's OBJ file

      • completionCallback: Function

        should contain a function that will take one parameter: an object array where the keys will be the unique object name and the value will be a Mesh object

      • inputArg: any

      Returns void