|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jinx.video.model.MeshElement
public abstract class MeshElement
MeshElement is the abstract super-class of all classes that contain vertices
for Models.
API Stability: Stable.
| Method Summary | |
|---|---|
abstract int |
draw(Context opt,
float[][] normals,
float[][] texCoord,
Coloration coloration,
int offset)
Draws the mesh, using the given array of Materials. |
abstract Face[] |
getFaces()
Provides an array of all the Faces formed by this MeshElement. |
float[][] |
getVertices()
Provides an array of vertices. |
LineElement |
toLineElement(float width)
Converts this MeshElement into a line-based MeshElement. |
int |
vertexCount()
Provides a count of the vertices contained within this MeshElement. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public float[][] getVertices()
public int vertexCount()
public abstract int draw(Context opt,
float[][] normals,
float[][] texCoord,
Coloration coloration,
int offset)
opt - the rendering options to use.normals - vectors in a vertex array for per-vertex normals. If
null, this indicates that per-face normals should be used instead.coloration - the Coloration object to use to color the vertices.offset - the index into normal array to start at. This is also the
current vertex number.
public abstract Face[] getFaces()
public LineElement toLineElement(float width)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||