com.jme.scene
Enum TriMesh.Mode

java.lang.Object
  extended by java.lang.Enum<TriMesh.Mode>
      extended by com.jme.scene.TriMesh.Mode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TriMesh.Mode>
Enclosing class:
TriMesh

public static enum TriMesh.Mode
extends java.lang.Enum<TriMesh.Mode>


Enum Constant Summary
Fan
          The first three vertices (V0, V1, V2) referenced by the indexbuffer create a triangle, from there, every additional vertex is paired with the preceding vertex and the initial vertex (V0) to make a new triangle.
Strip
          The first three vertices referenced by the indexbuffer create a triangle, from there, every additional vertex is paired with the two preceding vertices to make a new triangle.
Triangles
          Every three vertices referenced by the indexbuffer will be considered a stand-alone triangle.
 
Method Summary
static TriMesh.Mode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TriMesh.Mode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Triangles

public static final TriMesh.Mode Triangles
Every three vertices referenced by the indexbuffer will be considered a stand-alone triangle.


Strip

public static final TriMesh.Mode Strip
The first three vertices referenced by the indexbuffer create a triangle, from there, every additional vertex is paired with the two preceding vertices to make a new triangle.


Fan

public static final TriMesh.Mode Fan
The first three vertices (V0, V1, V2) referenced by the indexbuffer create a triangle, from there, every additional vertex is paired with the preceding vertex and the initial vertex (V0) to make a new triangle.

Method Detail

values

public static TriMesh.Mode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TriMesh.Mode c : TriMesh.Mode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TriMesh.Mode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null