net.jinx.video.model
Class Face

java.lang.Object
  extended by net.jinx.video.model.Face

public class Face
extends java.lang.Object

Represents a Face of a Model. This is used mostly for calculating per-vertex normals. Face objects have an array of vertices. They also have a normal vector for the face.

API Stability: Stable.


Method Summary
 float[] getNormal()
          Provides the normal vector for this Face.
 float[][] getVertices()
          Provides the vertex array from the constructor.
 boolean hasVertex(float[] v)
          Provides the means to determine if this face has the given vertex.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getVertices

public float[][] getVertices()
Provides the vertex array from the constructor.

Returns:
the vertex array.

hasVertex

public boolean hasVertex(float[] v)
Provides the means to determine if this face has the given vertex.

Parameters:
v - the vertex.
Returns:
true if this Face has the given vertex; false otherwise.

getNormal

public float[] getNormal()
Provides the normal vector for this Face.

Returns:
the vector.