com.md5importer.interfaces.model.mesh
Interface IMesh

All Superinterfaces:
com.jme.util.export.Savable
All Known Implementing Classes:
Mesh

public interface IMesh
extends com.jme.util.export.Savable

IMesh defines the interface of a mesh in the model. It maintains a number of vertices that compose a number of triangles. And each vertex is affected with a weight.


Method Summary
 IMesh clone(IJoint[] clonedJoints)
          Clone this mesh.
 IVertex getVertex(int index)
          Retrieve the vertex with given index number.
 IWeight getWeight(int index)
          Retrieve the weight with given index number.
 void initialize(java.lang.String name)
          Initialize this mesh and its geometric data.
 void setJoints(IJoint[] joints)
          Set this mesh to use the given joints.
 void swapBuffer()
          Swap the vertex information buffers.
 void updateMesh()
          Update this mesh and its geometric data.
 
Methods inherited from interface com.jme.util.export.Savable
getClassTag, read, write
 

Method Detail

initialize

void initialize(java.lang.String name)
Initialize this mesh and its geometric data.

Parameters:
name - The parent MD5 node String name.

updateMesh

void updateMesh()
Update this mesh and its geometric data.


swapBuffer

void swapBuffer()
Swap the vertex information buffers.


setJoints

void setJoints(IJoint[] joints)
Set this mesh to use the given joints.

Parameters:
joints - The array of IJoint to be used.

getVertex

IVertex getVertex(int index)
Retrieve the vertex with given index number.

Parameters:
index - The Integer index number of the IVertex.
Returns:
The IVertex instance with given index number.

getWeight

IWeight getWeight(int index)
Retrieve the weight with given index number.

Parameters:
index - The Integer index number of the Weight.
Returns:
The Weight instance with given index number.

clone

IMesh clone(IJoint[] clonedJoints)
Clone this mesh.

Parameters:
clonedJoints - The array of cloned IJoint.
Returns:
The cloned copy of this IMesh