public class MeshVertex
extends java.lang.Object
Constructor and Description |
---|
MeshVertex() |
MeshVertex(JAInputStream jins,
int ix,
boolean mtgthasnorm)
Constructs this MeshVertex from the given stream.
|
Modifier and Type | Method and Description |
---|---|
void |
fixBoneReferences(Skeleton skeleton)
Defines the influencing-bones array for this vertex.
|
int[] |
getAdjacentVertices()
Returns the array of indices of mesh-points adjacent to this one.
|
Vector3f |
getBaseNormal(int b)
Returns the base-normal vector for this mesh-point.
|
Bone |
getBone(int b)
Returns the specified influencing bone for this mesh-point.
|
float |
getBoneEndDistance(int b)
Returns the distance from this point to its (main) bone-end.
|
int |
getIndex()
Returns this point's index, w.r.t.
|
int |
getNumBones()
Returns the number of bones influencing this point.
|
Vector3f |
getOffset(int b)
Returns the specified offset vector for this mesh-point.
|
float |
getWeight(int b)
Returns the specified weight component for this mesh-point.
|
void |
save(JAOutputStream jouts)
Writes this MeshVertex to the given stream.
|
public MeshVertex()
public MeshVertex(JAInputStream jins, int ix, boolean mtgthasnorm) throws java.io.IOException
java.io.IOException
public float getBoneEndDistance(int b)
public int getIndex()
public int getNumBones()
public Bone getBone(int b)
public float getWeight(int b)
public Vector3f getOffset(int b)
public Vector3f getBaseNormal(int b)
public int[] getAdjacentVertices()
public void fixBoneReferences(Skeleton skeleton)
public void save(JAOutputStream jouts) throws java.io.IOException
java.io.IOException