com.threerings.opengl.model.tools
Class ModelDef.SkinMeshDef

java.lang.Object
  extended by com.threerings.opengl.model.tools.ModelDef.SpatialDef
      extended by com.threerings.opengl.model.tools.ModelDef.TriMeshDef
          extended by com.threerings.opengl.model.tools.ModelDef.SkinMeshDef
Enclosing class:
ModelDef

public static class ModelDef.SkinMeshDef
extends ModelDef.TriMeshDef

Represents a triangle mesh whose vertices are influenced by sets of bones.


Field Summary
 HashSet<String> mbones
          The bones that influence this mesh.
 
Fields inherited from class com.threerings.opengl.model.tools.ModelDef.TriMeshDef
colored, indices, offsetRotation, offsetScale, offsetTranslation, tag, texture, vertices
 
Fields inherited from class com.threerings.opengl.model.tools.ModelDef.SpatialDef
bone, childDefs, name, parent, parentDef, point, rotation, scale, translation
 
Constructor Summary
ModelDef.SkinMeshDef()
           
ModelDef.SkinMeshDef(ModelDef.SkinMeshDef other)
           
 
Method Summary
 void addVertex(ModelDef.Vertex vertex)
          Called by the parser to add a vertex to this mesh.
 ArticulatedConfig.Node createNode(ArticulatedConfig config, boolean haveCollisionMesh)
          Creates an articulation node.
 void createSkinMeshes(ArticulatedConfig config, ArrayList<ModelConfig.VisibleMesh> meshes)
          Creates a set of skin meshes based on this definition and adds them to the list provided.
 void mergeSkinMeshes(HashMap<Object,ModelDef.SkinMeshDef> meshes, HashSet<String> bones)
          Finds the names of all nodes referenced as bones, merges skin meshes with the same properties.
 void mergeSkinMeshes(ModelDef.TriMeshDef mesh)
          Merges all of the skin meshes under this node.
 void removeBoneWeights(String bone)
          Removes influences from the named bone.
 
Methods inherited from class com.threerings.opengl.model.tools.ModelDef.TriMeshDef
createCollisionMesh, createVisibleMesh, getConfigurationKey, merge, mergeMeshes, mergeMeshes
 
Methods inherited from class com.threerings.opengl.model.tools.ModelDef.SpatialDef
createChildNodes, createMeshes, getTransformMatrix, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mbones

public HashSet<String> mbones
The bones that influence this mesh.

Constructor Detail

ModelDef.SkinMeshDef

public ModelDef.SkinMeshDef()

ModelDef.SkinMeshDef

public ModelDef.SkinMeshDef(ModelDef.SkinMeshDef other)
Method Detail

addVertex

public void addVertex(ModelDef.Vertex vertex)
Description copied from class: ModelDef.TriMeshDef
Called by the parser to add a vertex to this mesh.

Overrides:
addVertex in class ModelDef.TriMeshDef

mergeSkinMeshes

public void mergeSkinMeshes(HashMap<Object,ModelDef.SkinMeshDef> meshes,
                            HashSet<String> bones)
Description copied from class: ModelDef.SpatialDef
Finds the names of all nodes referenced as bones, merges skin meshes with the same properties.

Overrides:
mergeSkinMeshes in class ModelDef.SpatialDef

removeBoneWeights

public void removeBoneWeights(String bone)
Description copied from class: ModelDef.SpatialDef
Removes influences from the named bone.

Overrides:
removeBoneWeights in class ModelDef.SpatialDef

mergeSkinMeshes

public void mergeSkinMeshes(ModelDef.TriMeshDef mesh)
Description copied from class: ModelDef.SpatialDef
Merges all of the skin meshes under this node.

Overrides:
mergeSkinMeshes in class ModelDef.SpatialDef

createNode

public ArticulatedConfig.Node createNode(ArticulatedConfig config,
                                         boolean haveCollisionMesh)
Description copied from class: ModelDef.SpatialDef
Creates an articulation node.

Overrides:
createNode in class ModelDef.TriMeshDef

createSkinMeshes

public void createSkinMeshes(ArticulatedConfig config,
                             ArrayList<ModelConfig.VisibleMesh> meshes)
Creates a set of skin meshes based on this definition and adds them to the list provided.



Copyright © 2011. All Rights Reserved.