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

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

public class MeshSources
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
MeshSources()
          Create a new COLLADA Mesh
 
Method Summary
 void addUV(float[] uv)
           
 MeshSources copy()
           
 float[] getColors()
           
 float[] getNormals()
           
 float[][] getUVs()
           
 float[] getVertices()
           
 void setColors(float[] colors)
           
 void setNormals(float[] normals)
           
 void setUVs(float[][] uvs)
           
 void setVertices(float[] vertices)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeshSources

public MeshSources()
Create a new COLLADA Mesh

Method Detail

setVertices

public void setVertices(float[] vertices)

getVertices

public final float[] getVertices()

setNormals

public void setNormals(float[] normals)

getNormals

public final float[] getNormals()

setColors

public void setColors(float[] colors)

getColors

public final float[] getColors()

setUVs

public void setUVs(float[][] uvs)

addUV

public void addUV(float[] uv)

getUVs

public final float[][] getUVs()

copy

public MeshSources copy()
Returns:
a copy of these sources.