public class Face3
extends java.lang.Object
{ @code Vector3 normal = new Vector3(0, 1, 0); Color color = new Color(0xffaa00); Face3 face = new Face3(0, 1, 2, normal, color, 0); }
Modifier and Type | Field and Description |
---|---|
Vector3 |
__originalFaceNormal |
java.util.List<Vector3> |
__originalVertexNormals |
Constructor and Description |
---|
Face3(int a,
int b,
int c)
Face3 constructor
|
Face3(int a,
int b,
int c,
int materialIndex)
Face3 constructor
|
Face3(int a,
int b,
int c,
java.util.List<Vector3> normals)
Face3 constructor
|
Face3(int a,
int b,
int c,
java.util.List<Vector3> normals,
java.util.List<Color> colors,
int materialIndex)
Face3 constructor
|
Face3(int a,
int b,
int c,
Vector3 normal) |
Face3(int a,
int b,
int c,
Vector3 normal,
Color color,
int materialIndex)
Face3 constructor
|
Modifier and Type | Method and Description |
---|---|
Face3 |
clone() |
int |
getA()
Gets Vertex A index.
|
int |
getB()
Gets Vertex B index.
|
int |
getC()
Gets Vertex C index
|
Color |
getColor()
Gets the Face color.
|
int[] |
getFlat() |
int |
getMaterialIndex()
Gets Material index.
|
Vector3 |
getNormal()
Gets the Face normal.
|
java.util.List<Color> |
getVertexColors()
Gets List of 3 vertex colors.
|
java.util.List<Vector3> |
getVertexNormals()
Gets List of 3 vertex normals.
|
java.util.List<Vector4> |
getVertexTangents()
Gets List of 3 vertex tangets.
|
void |
setA(int a)
Sets Vertex A index.
|
void |
setB(int b)
Sets Vertex B index.
|
void |
setC(int c)
Sets Vertex C index
|
void |
setColor(Color color)
Sets the Face color.
|
void |
setMaterialIndex(int index)
Sets Material index.
|
void |
setNormal(Vector3 normal)
Sets the Face normal.
|
void |
setVertexColors(java.util.List<Color> vertexColors)
Sets List of 3 vertex colors.
|
void |
setVertexNormals(java.util.List<Vector3> vertexNormals)
Sets List of 3 vertex normals.
|
void |
setVertexTangents(java.util.List<Vector4> vertexTangents)
Sets List of 3 vertex tangets.
|
java.lang.String |
toString() |
public Vector3 __originalFaceNormal
public java.util.List<Vector3> __originalVertexNormals
public Face3(int a, int b, int c, Vector3 normal)
public Face3(int a, int b, int c, java.util.List<Vector3> normals)
a
- the Vertex A index.b
- the Vertex B index.c
- the Vertex C index.normals
- the List of vertex normals.public Face3(int a, int b, int c, int materialIndex)
a
- the Vertex A index.b
- the Vertex B index.c
- the Vertex C index.materialIndex
- the Material index.public Face3(int a, int b, int c)
a
- the Vertex A index.b
- the Vertex B index.c
- the Vertex C index.public Face3(int a, int b, int c, java.util.List<Vector3> normals, java.util.List<Color> colors, int materialIndex)
a
- the Vertex A index.b
- the Vertex B index.c
- the Vertex C index.normals
- the List of vertex normals.colors
- the List of vertex colors.materialIndex
- the Material index.public void setA(int a)
public int getA()
public void setB(int b)
public int getB()
public void setC(int c)
public int getC()
public int[] getFlat()
public void setNormal(Vector3 normal)
public Vector3 getNormal()
public void setVertexNormals(java.util.List<Vector3> vertexNormals)
public java.util.List<Vector3> getVertexNormals()
public void setColor(Color color)
public Color getColor()
public void setVertexColors(java.util.List<Color> vertexColors)
public java.util.List<Color> getVertexColors()
public void setVertexTangents(java.util.List<Vector4> vertexTangents)
public java.util.List<Vector4> getVertexTangents()
public int getMaterialIndex()
public void setMaterialIndex(int index)
public Face3 clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object