|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsaito.objloader.Face
public class Face
Field Summary | |
---|---|
static java.util.Comparator<Face> |
FaceXComparator
|
static java.util.Comparator<Face> |
FaceYComparator
|
static java.util.Comparator<Face> |
FaceZComparator
|
int |
indexType
|
java.util.ArrayList<java.lang.Integer> |
normalIndices
|
java.util.ArrayList<PVector> |
normals
|
java.util.ArrayList<java.lang.Integer> |
uvIndices
|
java.util.ArrayList<PVector> |
uvs
|
java.util.ArrayList<java.lang.Integer> |
vertexIndices
|
java.util.ArrayList<PVector> |
vertices
|
Constructor Summary | |
---|---|
Face()
Constructor for the Face. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object f2)
|
PVector |
getCenter()
Get's the center position of the face. |
float |
getFacingAmount(PVector position)
Returns a float value from 0 - 1. |
PVector |
getNormal()
Returns the face normal. |
int |
getNormalCount()
|
int |
getNormalIndex(int i)
|
int[] |
getNormalIndices()
|
PVector[] |
getNormals()
Returns an array of normals that make up this face |
int |
getNormIndexCount()
|
int |
getTextureIndex(int i)
|
int[] |
getTextureIndices()
|
int |
getUVCount()
|
int |
getUVIndexCount()
|
PVector[] |
getUvs()
Returns an array of uvs that make up this face |
int |
getVertexCount()
|
int |
getVertexIndex(int i)
|
int[] |
getVertexIndices()
|
PVector[] |
getVertices()
Returns an array of PVectors that make up this face |
int |
getVertIndexCount()
|
boolean |
isFacingPosition(PVector position)
Used for knowing if a face is pointing in the direction of the supplied PVector. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int indexType
public java.util.ArrayList<java.lang.Integer> vertexIndices
public java.util.ArrayList<java.lang.Integer> uvIndices
public java.util.ArrayList<java.lang.Integer> normalIndices
public java.util.ArrayList<PVector> vertices
public java.util.ArrayList<PVector> normals
public java.util.ArrayList<PVector> uvs
public static java.util.Comparator<Face> FaceXComparator
public static java.util.Comparator<Face> FaceYComparator
public static java.util.Comparator<Face> FaceZComparator
Constructor Detail |
---|
public Face()
Method Detail |
---|
public int getVertIndexCount()
public int getNormIndexCount()
public int getUVIndexCount()
public int getVertexCount()
public int getNormalCount()
public int getUVCount()
public int[] getVertexIndices()
public int[] getNormalIndices()
public int[] getTextureIndices()
public PVector[] getVertices()
public PVector[] getNormals()
public PVector[] getUvs()
public PVector getCenter()
public PVector getNormal()
public int getVertexIndex(int i)
public int getTextureIndex(int i)
public int getNormalIndex(int i)
public boolean isFacingPosition(PVector position)
position
-
public float getFacingAmount(PVector position)
position
-
public int compareTo(java.lang.Object f2) throws java.lang.ClassCastException
compareTo
in interface java.lang.Comparable
java.lang.ClassCastException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |