org.gljava.opengl.model
Class Face

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

public class Face
extends java.lang.Object

One face of a Mesh. vertex1, vertex2 and vertex3 are indexes into an array of vertices

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

Field Summary
 int vertex1
           
 int vertex2
           
 int vertex3
           
 
Constructor Summary
Face(int v1, int v2, int v3)
           
 
Method Summary
 int getVertex1()
          Gets the value of vertex1
 int getVertex2()
          Gets the value of vertex2
 int getVertex3()
          Gets the value of vertex3
 void setVertex1(int argVertex1)
          Sets the value of vertex1
 void setVertex2(int argVertex2)
          Sets the value of vertex2
 void setVertex3(int argVertex3)
          Sets the value of vertex3
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vertex1

public int vertex1

vertex2

public int vertex2

vertex3

public int vertex3
Constructor Detail

Face

public Face(int v1,
            int v2,
            int v3)
Method Detail

getVertex1

public int getVertex1()
Gets the value of vertex1

Returns:
the value of vertex1

setVertex1

public void setVertex1(int argVertex1)
Sets the value of vertex1

Parameters:
argVertex1 - Value to assign to this.vertex1

getVertex2

public int getVertex2()
Gets the value of vertex2

Returns:
the value of vertex2

setVertex2

public void setVertex2(int argVertex2)
Sets the value of vertex2

Parameters:
argVertex2 - Value to assign to this.vertex2

getVertex3

public int getVertex3()
Gets the value of vertex3

Returns:
the value of vertex3

setVertex3

public void setVertex3(int argVertex3)
Sets the value of vertex3

Parameters:
argVertex3 - Value to assign to this.vertex3