com.md5importer.interfaces.model.mesh.primitive
Interface ITriangle

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

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

ITriangle defines a triangle of a mesh. It is composed of three vertices.


Method Summary
 ITriangle clone(IVertex[] clonedVertices)
          Clone this triangle.
 int getIndex()
          Retrieve the index value of this triangle.
 IVertex getVertex(int index)
          Retrieve the vertex with given array index.
 void processNormal()
          Process the normal of vertices and store the normal values in the IVertex instances.
 
Methods inherited from interface com.jme.util.export.Savable
getClassTag, read, write
 

Method Detail

processNormal

void processNormal()
Process the normal of vertices and store the normal values in the IVertex instances.


getVertex

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

Parameters:
index - The Integer index number in the ITriangle.
Returns:
The IVertex instance with given array index.

getIndex

int getIndex()
Retrieve the index value of this triangle.

Returns:
The Integer index value.

clone

ITriangle clone(IVertex[] clonedVertices)
Clone this triangle.

Parameters:
clonedVertices - The array of cloned IVertex.
Returns:
The cloned copy of this ITriangle