com.jme.util
Class MeshUtils

java.lang.Object
  extended bycom.jme.util.MeshUtils

public final class MeshUtils
extends java.lang.Object

This class is a set of static mesh creation utilities.


Method Summary
static TriMesh createDodecahedronMesh(TriMesh rpkMesh, boolean bWantNormals, boolean bWantColors, boolean bWantUVs, boolean bOutsideView)
          Creates a dodecahedron mesh.
static TriMesh createIcosahedronMesh(TriMesh rpkMesh, boolean bWantNormals, boolean bWantColors, boolean bWantUVs, boolean bOutsideView)
          Creates a Icosahedron mesh.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createDodecahedronMesh

public static TriMesh createDodecahedronMesh(TriMesh rpkMesh,
                                             boolean bWantNormals,
                                             boolean bWantColors,
                                             boolean bWantUVs,
                                             boolean bOutsideView)
Creates a dodecahedron mesh. If rpkMesh is null, a new mesh is used and returned.

Parameters:
rpkMesh - The TriMesh to store the result in.
bWantNormals - If true, normals are created.
bWantColors - If true, colors are created.
bWantUVs - If true, UV coords are created.
bOutsideView -
Returns:
rpkMesh after creation.

createIcosahedronMesh

public static TriMesh createIcosahedronMesh(TriMesh rpkMesh,
                                            boolean bWantNormals,
                                            boolean bWantColors,
                                            boolean bWantUVs,
                                            boolean bOutsideView)
Creates a Icosahedron mesh. If rpkMesh is null, a new mesh is used and returned.

Parameters:
rpkMesh - The TriMesh to store the result in.
bWantNormals - If true, normals are created.
bWantColors - If true, colors are created.
bWantUVs - If true, UV coords are created.
bOutsideView -
Returns:
rpkMesh after creation.