org.gljava.opengl.model

Class Mesh

public class Mesh extends 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
voidrender(GL gl)
voidsetFaces(Face[] argFaces)
Sets the value of faces
voidsetVertices(Vector[] argVertices)
Sets the value of vertices
StringtoString()

Field Detail

faces

public Face[] faces

vertices

public Vector[] vertices

Constructor Detail

Mesh

public Mesh()

Mesh

public Mesh(int vertexCount, int faceCount)

Method Detail

getFaces

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

Returns: the value of faces

getVertices

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

Returns: the value of vertices

render

public void render(GL gl)

setFaces

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

Parameters: argFaces Value to assign to this.faces

setVertices

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

Parameters: argVertices Value to assign to this.vertices

toString

public String toString()