Constructor
new Layer(name, cppMesh)
Parameters:
Name | Type | Description |
---|---|---|
name |
String | The name of the mesh file |
cppMesh |
CppMesh | the CppMesh object |
- Source:
Members
fileName :String
- Set if a mesh is read from a file(see MLJ.core.File.openMeshFile), defaults to the empty string
Type:
- String
- Source:
Methods
dispose()
Removes the object from memory
- Source:
getThreeMesh() → {THREE.Mesh}
Returns this THREE.Mesh object
- Source:
Returns:
this THREE.Mesh object
- Type
- THREE.Mesh
ptrMesh() → {Number}
Returns the ptr to the cppMesh object
- Source:
Returns:
An emscripten pointer to the VCG mesh of this layer
- Type
- Number