m3g04.mesh
Class MeshUtils

java.lang.Object
  extended by m3g04.mesh.MeshUtils

public class MeshUtils
extends java.lang.Object

Utility methods for meshes.

Author:
Claus Hoefele

Constructor Summary
private MeshUtils()
          Constructor has private access because class contains static methods exclusively.
 
Method Summary
static void addRandomColors(javax.microedition.m3g.Mesh mesh)
          Assigns a random color to each vertex of a mesh.
static void copyTexCoords(javax.microedition.m3g.Mesh mesh, int src, int dest)
          Duplicates texture coordinates from one unit to another.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeshUtils

private MeshUtils()
Constructor has private access because class contains static methods exclusively.

Method Detail

addRandomColors

public static void addRandomColors(javax.microedition.m3g.Mesh mesh)
Assigns a random color to each vertex of a mesh.

Parameters:
mesh - mesh to add color to.

copyTexCoords

public static void copyTexCoords(javax.microedition.m3g.Mesh mesh,
                                 int src,
                                 int dest)
Duplicates texture coordinates from one unit to another.

Parameters:
mesh - mesh with texture coordinates.
src - source texture unit.
dest - destination texture unit.