com.threerings.opengl.model.tools
Class ModelDef.SkinVertex
java.lang.Object
com.threerings.opengl.model.tools.ModelDef.Vertex
com.threerings.opengl.model.tools.ModelDef.SkinVertex
- Enclosing class:
- ModelDef
public static class ModelDef.SkinVertex
- extends ModelDef.Vertex
A vertex with bone influences.
boneWeights
public HashMap<String,ModelDef.BoneWeight> boneWeights
- The bones influencing the vertex, mapped by name.
ModelDef.SkinVertex
public ModelDef.SkinVertex()
addBoneWeight
public void addBoneWeight(ModelDef.BoneWeight weight)
- Called by the parser to add a bone weight to this vertex.
getBones
public Set<String> getBones()
- Returns a set containing the names of the bones influencing this vertex. If there are
more than four, the extra influences will be removed and the weight will be
redistributed.
get
public void get(FloatBuffer vbuf,
String[] bones)
- Puts the contents of this vertex into the specified buffer.
- Parameters:
bones - the list of bones influencing the mesh.
equals
public boolean equals(Object obj)
- Overrides:
equals in class ModelDef.Vertex
Copyright © 2011. All Rights Reserved.