org.jagatoo.loaders.models.collada.datastructs.geometries
Class Mesh

java.lang.Object
  extended by org.jagatoo.loaders.models.collada.datastructs.geometries.Mesh

public class Mesh
extends java.lang.Object

A COLLADA Mesh : it's a collection of vertices and optionally vertex indices, normals (and indices), colors (and indices), UV coordinates (and indices).


Constructor Summary
Mesh(MeshSources sources)
          Create a new COLLADA Mesh
 
Method Summary
 Mesh copy()
           
 int[] getColorIndices()
           
 int[] getNormalIndices()
           
 MeshSources getSources()
           
 int[][] getUVIndices()
           
 int[] getVertexIndices()
           
 void setColorIndices(int[] colorIndices)
           
 void setNormalIndices(int[] normalIndices)
           
 void setSources(MeshSources sources)
           
 void setUVIndices(int[][] uvIndices)
           
 void setVertexIndices(int[] vertexIndices)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mesh

public Mesh(MeshSources sources)
Create a new COLLADA Mesh

Parameters:
sources - The sources which should be used by this mesh.
Method Detail

setSources

public void setSources(MeshSources sources)

getSources

public final MeshSources getSources()

setVertexIndices

public final void setVertexIndices(int[] vertexIndices)

getVertexIndices

public final int[] getVertexIndices()

setNormalIndices

public final void setNormalIndices(int[] normalIndices)

getNormalIndices

public final int[] getNormalIndices()

setColorIndices

public final void setColorIndices(int[] colorIndices)

getColorIndices

public final int[] getColorIndices()

setUVIndices

public final void setUVIndices(int[][] uvIndices)

getUVIndices

public final int[][] getUVIndices()

copy

public Mesh copy()
Returns:
a copy of this mesh