org.gljava.opengl.model
Class Mesh

java.lang.Object
  extended by org.gljava.opengl.model.Mesh

public class Mesh
extends java.lang.Object

A Mesh. Contains a list of vertices and faces.

Version:
$Id: Mesh.java,v 1.1 2005/02/10 04:18:42 ivan_ganza Exp $
Author:
Ivan Z. Ganza

Field Summary
 Face[] faces
           
 Vector[] vertices
           
 
Constructor Summary
Mesh()
           
Mesh(int vertexCount, int faceCount)
           
 
Method Summary
 Face[] getFaces()
          Gets the value of faces
 Vector[] getVertices()
          Gets the value of vertices
 void render(GL gl)
           
 void setFaces(Face[] argFaces)
          Sets the value of faces
 void setVertices(Vector[] argVertices)
          Sets the value of vertices
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

vertices

public Vector[] vertices

faces

public Face[] faces
Constructor Detail

Mesh

public Mesh()

Mesh

public Mesh(int vertexCount,
            int faceCount)
Method Detail

render

public void render(GL gl)

getVertices

public Vector[] getVertices()
Gets the value of vertices

Returns:
the value of vertices

setVertices

public void setVertices(Vector[] argVertices)
Sets the value of vertices

Parameters:
argVertices - Value to assign to this.vertices

getFaces

public Face[] getFaces()
Gets the value of faces

Returns:
the value of faces

setFaces

public void setFaces(Face[] argFaces)
Sets the value of faces

Parameters:
argFaces - Value to assign to this.faces

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object