Coppercube API Documentation
Class Mesh
Class which holds the geometry of an object
Class Overview
Mesh()
Class which holds the geometry of an object.
A Mesh is nothing more than a collection of some MeshBuffers.
A mesh is usually used in a MeshSceneNode in order to be rendered.
Method Attributes | Method Name and Description |
---|---|
Adds a MeshBuffer to a mesh.
|
|
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
{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