CopperLicht API Documentation
Class CL3D.Mesh
Class which holds the geometry of an object
Class Overview
CL3D.Mesh()
Class which holds the geometry of an object.
A Mesh is nothing more than a collection of some CL3D.MeshBuffers.
A mesh is usually used in a CL3D.MeshSceneNode in order to be rendered.
Method Attributes | Method Name and Description |
---|---|
Adds a MeshBuffer to a mesh.
|
|
Creates a clone of this mesh, a copy
|
|
Returns an Array of all MeshBuffers in this mesh.
|
|
Returns the amount of polygons in the mesh
|
Method Detail
AddMeshBuffer(m)
Adds a MeshBuffer to a mesh.
- Parameters:
- m
createClone()
Creates a clone of this mesh, a copy
{Array}
GetMeshBuffers()
Returns an Array of all MeshBuffers in this mesh.
- Returns:
- {Array} array of MeshBuffers
{Number}
GetPolyCount()
Returns the amount of polygons in the mesh
- Returns:
- {Number} number of polygons in this mesh