|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.md5importer.model.mesh.primitive.Triangle
public class Triangle
Triangle defines the concrete implementation of a
triangle. It is responsible for calculating the normal vector
for each IVertex.
Triangle cannot be cloned directly. The cloning
process of a Triangle can only be initiated by the
cloning process of the parent IMesh.
This class is used internally by MD5Importer only.
| Constructor Summary | |
|---|---|
Triangle()
Constructor of Triangle. |
|
Triangle(int index,
IVertex[] vertices)
Constructor of Triangle. |
|
| Method Summary | |
|---|---|
ITriangle |
clone(IVertex[] clonedVertices)
Clone this triangle. |
java.lang.Class |
getClassTag()
|
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. |
void |
read(com.jme.util.export.JMEImporter im)
|
void |
write(com.jme.util.export.JMEExporter ex)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Triangle()
Triangle.
public Triangle(int index,
IVertex[] vertices)
Triangle.
index - The Integer index value.vertices - The array of IVertex instances.| Method Detail |
|---|
public void processNormal()
ITriangleIVertex instances.
processNormal in interface ITrianglepublic IVertex getVertex(int index)
ITriangle
getVertex in interface ITriangleindex - The Integer index number in the ITriangle.
IVertex instance with given array index.public int getIndex()
ITriangle
getIndex in interface ITriangleInteger index value.public java.lang.Class getClassTag()
getClassTag in interface com.jme.util.export.Savable
public void write(com.jme.util.export.JMEExporter ex)
throws java.io.IOException
write in interface com.jme.util.export.Savablejava.io.IOException
public void read(com.jme.util.export.JMEImporter im)
throws java.io.IOException
read in interface com.jme.util.export.Savablejava.io.IOExceptionpublic ITriangle clone(IVertex[] clonedVertices)
ITriangle
clone in interface ITriangleclonedVertices - The array of cloned IVertex.
ITriangle
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||