org.gljava.opengl.model

Class Face

public class Face extends 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
intvertex1
intvertex2
intvertex3
Constructor Summary
Face(int v1, int v2, int v3)
Method Summary
intgetVertex1()
Gets the value of vertex1
intgetVertex2()
Gets the value of vertex2
intgetVertex3()
Gets the value of vertex3
voidsetVertex1(int argVertex1)
Sets the value of vertex1
voidsetVertex2(int argVertex2)
Sets the value of vertex2
voidsetVertex3(int argVertex3)
Sets the value of vertex3

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

getVertex2

public int getVertex2()
Gets the value of vertex2

Returns: the value of vertex2

getVertex3

public int getVertex3()
Gets the value of vertex3

Returns: the value of vertex3

setVertex1

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

Parameters: argVertex1 Value to assign to this.vertex1

setVertex2

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

Parameters: argVertex2 Value to assign to this.vertex2

setVertex3

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

Parameters: argVertex3 Value to assign to this.vertex3