Class: Layer

Layer

Creates a new Layer

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

Author:
  • Stefano Gabriele
Source:

getThreeMesh() → {THREE.Mesh}

Returns this THREE.Mesh object

Author:
  • Stefano Gabriele
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