Model
object
model : Useful namespace for helping with Model utility functions
Kind: global namespace
- model :
object
- .loadDAE(filePath) ⇒
Promise.<THREE.Mesh>
- .loadOBJ(filePath) ⇒
Promise.<THREE.Mesh>
- .loadOBJWithMTL(filePath) ⇒
Promise.<THREE.Mesh>
- .loadFBX(filePath) ⇒
Promise.<THREE.Mesh>
- .loadGLTF(filePath) ⇒
Promise.<THREE.Mesh>
- .loadSTL(filePath) ⇒
Promise.<THREE.Mesh>
- .loadUSDZ(filePath) ⇒
Promise.<THREE.Mesh>
- .loadModel(filePath, extension) ⇒
Promise.<THREE.Mesh>
- .loadDAE(filePath) ⇒
Promise.<THREE.Mesh>
model.loadDAE(filePath) ⇒ Loads Collada file
Kind: static method of model
Returns: Promise.<THREE.Mesh>
- - the promise of the loaded mesh object.
Param | Type | Description |
---|---|---|
filePath | string |
The path to the file(s) needing to be loaded. For now this only supports the full path and the relative path directly to the file. |
Promise.<THREE.Mesh>
model.loadOBJ(filePath) ⇒ Loads OBJ file
Kind: static method of model
Returns: Promise.<THREE.Mesh>
- - the promise of the loaded mesh object.
Param | Type | Description |
---|---|---|
filePath | string |
The path to the file(s) needing to be loaded. For now this only supports the full path and the relative path directly to the file. |
Promise.<THREE.Mesh>
model.loadOBJWithMTL(filePath) ⇒ Loads OBJ file with externally hosted MTL file
Kind: static method of model
Returns: Promise.<THREE.Mesh>
- - the promise of the loaded mesh object.
Param | Type | Description |
---|---|---|
filePath | string |
The path of the form ‘/path/to/mtlFile.mtl,/path/to/objFile.obj’. |
Promise.<THREE.Mesh>
model.loadFBX(filePath) ⇒ Loads FBX file
Kind: static method of model
Returns: Promise.<THREE.Mesh>
- - the promise of the loaded mesh object.
Param | Type | Description |
---|---|---|
filePath | string |
The path to the file(s) needing to be loaded. For now this only supports the full path and the relative path directly to the file. |
Promise.<THREE.Mesh>
model.loadGLTF(filePath) ⇒ Loads GLTF/GLB file
Kind: static method of model
Returns: Promise.<THREE.Mesh>
- - the promise of the loaded mesh object.
Param | Type | Description |
---|---|---|
filePath | string |
The path to the file(s) needing to be loaded. For now this only supports the full path and the relative path directly to the file. |
Promise.<THREE.Mesh>
model.loadSTL(filePath) ⇒ Loads stl file
Kind: static method of model
Returns: Promise.<THREE.Mesh>
- - the promise of the loaded mesh object.
Param | Type | Description |
---|---|---|
filePath | string |
The path to the file(s) needing to be loaded. For now this only supports the full path and the relative path directly to the file. |
Promise.<THREE.Mesh>
model.loadUSDZ(filePath) ⇒ Loads USD/USDZ file
Kind: static method of model
Returns: Promise.<THREE.Mesh>
- - the promise of the loaded mesh object.
Param | Type | Description |
---|---|---|
filePath | string |
The path to the file(s) needing to be loaded. For now this only supports the full path and the relative path directly to the file. |
Promise.<THREE.Mesh>
model.loadModel(filePath, extension) ⇒ The main loading function
Kind: static method of model
Returns: Promise.<THREE.Mesh>
- - the promise of the loaded mesh object.
Param | Type | Description |
---|---|---|
filePath | string |
The path to the file(s) needing to be loaded. For now this only supports the full path and the relative path directly to the file. |
extension | string |
The extension of the file type. Current allowed extensions are dae , fbx, glb, obj, and stl`. |