|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IVertex
IVertex defines the interface of a single vertex in
a mesh system. It maintains its own transformation based on the
joints and weight that affects it.
IVertex maintains its texture coordinates, normal
vector and position vector.
| Method Summary | |
|---|---|
IVertex |
clone(IWeight[] clonedWeights)
Clone this vertex. |
int |
getIndex()
Retrieve the index value of this vertex. |
com.jme.math.Vector3f |
getNormal()
Retrieve the normal of this vertex. |
com.jme.math.Vector3f |
getPosition()
Retrieve the position of this vertex. |
com.jme.math.Vector2f |
getTextureCoords()
Retrieve the texture coordinates of this vertex. |
int |
getUsedTimes()
Retrieve the number of times this vertex has been used. |
void |
incrementUsedTimes()
Increment the number of times this vertex has been used by a triangle |
void |
processPosition()
Process the vertex position. |
void |
resetInformation()
Reset the normal and position information of this vertex. |
void |
setNormal(com.jme.math.Vector3f normal)
Set the normal vector of this vertex. |
void |
setNormalReference(com.jme.math.Vector3f normal)
Set this vertex to directly use the given reference as normal. |
void |
setTextureCoords(float u,
float v)
Set the texture coordinates of this vertex. |
void |
setWeights(IWeight... weights)
Set weights that affects this vertex |
| Methods inherited from interface com.jme.util.export.Savable |
|---|
getClassTag, read, write |
| Method Detail |
|---|
void processPosition()
void resetInformation()
void incrementUsedTimes()
void setTextureCoords(float u,
float v)
u - The u value.v - The un-inverted v value.void setWeights(IWeight... weights)
weights - The variable argument of IWeight.void setNormal(com.jme.math.Vector3f normal)
normal - The normal Vector3f to be set.void setNormalReference(com.jme.math.Vector3f normal)
normal - The Vector3f normal reference.com.jme.math.Vector2f getTextureCoords()
Vector2f texture coordinates.int getUsedTimes()
Integer number of used times.com.jme.math.Vector3f getPosition()
Vector3f position.com.jme.math.Vector3f getNormal()
Vector3f.int getIndex()
Integer index.IVertex clone(IWeight[] clonedWeights)
Vertex
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||