|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.model.tools.ModelDef.Vertex
public static class ModelDef.Vertex
A single vertex in a mesh.
| Field Summary | |
|---|---|
float[] |
color
|
List<ModelDef.Extra> |
extras
Extra data associated with the vertex. |
float[] |
location
The parameters of the vertex. |
float[] |
normal
|
float |
score
When reordering vertices, the last computed score of the vertex. |
Vector3f |
tangent
The tangent vector, if computed. |
float[] |
tcoords
|
ArrayList<com.threerings.opengl.model.tools.ModelDef.Triangle> |
triangles
When reordering vertices, the triangles containing the vertex. |
| Constructor Summary | |
|---|---|
ModelDef.Vertex()
|
|
| Method Summary | |
|---|---|
void |
addExtra(ModelDef.Extra extra)
Called by the parser to add extra data to this vertex. |
boolean |
equals(Object obj)
|
void |
generateTangent()
Generates the tangent vector for this vertex (after its triangle list has been initialized). |
void |
get(FloatBuffer vbuf)
Puts the contents of this vertex into the specified buffer. |
int |
hashCode()
|
String |
toString()
|
void |
transform(Matrix4f vtrans,
Matrix4f ntrans)
Transforms this vertex in-place by the given vertex and normal matrices. |
void |
updateScore(int cacheIdx)
Updates this vertex's score based on its current position in the simulated cache and the number of remaining triangles that include it. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public float[] location
public float[] normal
public float[] tcoords
public float[] color
public List<ModelDef.Extra> extras
public ArrayList<com.threerings.opengl.model.tools.ModelDef.Triangle> triangles
public float score
public Vector3f tangent
| Constructor Detail |
|---|
public ModelDef.Vertex()
| Method Detail |
|---|
public void addExtra(ModelDef.Extra extra)
public void transform(Matrix4f vtrans,
Matrix4f ntrans)
public void generateTangent()
public void get(FloatBuffer vbuf)
public void updateScore(int cacheIdx)
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||