unlekker.geom
Class Face
java.lang.Object
unlekker.geom.Face
public class Face
- extends java.lang.Object
A single polygon face.
- Author:
- Marius Watz
Field Summary |
int |
edgeCnt
|
float[] |
v
Array containing the face normal and the three vertices making up this face. |
Constructor Summary |
Face()
|
Method Summary |
static Face |
parseFace(java.nio.ByteBuffer buf)
|
void |
scale(float tx,
float ty,
float tz)
|
java.lang.String |
toString()
|
void |
translate(float tx,
float ty,
float tz)
|
void |
vertex(float _x,
float _y,
float _z)
|
void |
write(java.nio.ByteBuffer buf)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
v
public float[] v
- Array containing the face normal and the three vertices making up this face.
v[0..2] is the normal, v[3..5] is the first vertex etc.
edgeCnt
public int edgeCnt
Face
public Face()
vertex
public void vertex(float _x,
float _y,
float _z)
parseFace
public static Face parseFace(java.nio.ByteBuffer buf)
throws java.io.IOException
- Throws:
java.io.IOException
translate
public void translate(float tx,
float ty,
float tz)
scale
public void scale(float tx,
float ty,
float tz)
write
public void write(java.nio.ByteBuffer buf)
throws java.io.IOException
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object