Class: Model

Model

The Model class bundles several Mesh objects into a single renderable object. This allows a single object (for example: a character) to use different Materials for different parts (fe: a skin material and a clothes material)


new Model( [meshes])

Parameters:
Name Type Argument Description
meshes <optional>

The Mesh objects with which to initialize the Model.

Author:
  • derschmale <http://www.derschmale.com>

Members


localBounds

The object-space bounding box.


name

The name of the Model.


numMeshes

The amount of Mesh objects in this Model.


skeleton

The Skeleton used for skinning animations.

Methods


addMesh()

Adds a Mesh to the Model


getMesh()

Retrieves the Mesh at the given index.


removeMesh()

Removes a Mesh from the Model.