|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.opengl.model.tools.ModelDef.SpatialDef
com.threerings.opengl.model.tools.ModelDef.TriMeshDef
com.threerings.opengl.model.tools.ModelDef.SkinMeshDef
public static class ModelDef.SkinMeshDef
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 |
|---|
_transformMatrix, 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. |
protected GeometryConfig |
createGeometry(Box bounds,
GeometryConfig.AttributeArrayConfig[] vertexAttribArrays,
ClientArrayConfig[] texCoordArrays,
ClientArrayConfig colorArray,
ClientArrayConfig normalArray,
ClientArrayConfig vertexArray)
Creates the geometry for this node. |
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. |
protected GeometryConfig.AttributeArrayConfig[] |
createVertexAttribArrays(ModelConfig.Imported config)
Creates the attribute arrays. |
protected String |
getDefaultTag()
Returns the default tag for this mesh type. |
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 |
|---|
containsCollisionMesh, createCollisionMesh, createIndexBuffer, createVisibleMesh, getConfigurationKey, merge, mergeMeshes, mergeMeshes, optimizeVertexOrder, transformVertices |
| Methods inherited from class com.threerings.opengl.model.tools.ModelDef.SpatialDef |
|---|
clearTransform, clearTransforms, createChildNodes, createMeshes, getTransformMatrix, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public HashSet<String> mbones
| Constructor Detail |
|---|
public ModelDef.SkinMeshDef()
public ModelDef.SkinMeshDef(ModelDef.SkinMeshDef other)
| Method Detail |
|---|
public void addVertex(ModelDef.Vertex vertex)
ModelDef.TriMeshDef
addVertex in class ModelDef.TriMeshDef
public void mergeSkinMeshes(HashMap<Object,ModelDef.SkinMeshDef> meshes,
HashSet<String> bones)
ModelDef.SpatialDef
mergeSkinMeshes in class ModelDef.SpatialDefpublic void removeBoneWeights(String bone)
ModelDef.SpatialDef
removeBoneWeights in class ModelDef.SpatialDefpublic void mergeSkinMeshes(ModelDef.TriMeshDef mesh)
ModelDef.SpatialDef
mergeSkinMeshes in class ModelDef.SpatialDef
public ArticulatedConfig.Node createNode(ArticulatedConfig config,
boolean haveCollisionMesh)
ModelDef.SpatialDef
createNode in class ModelDef.TriMeshDef
public void createSkinMeshes(ArticulatedConfig config,
ArrayList<ModelConfig.VisibleMesh> meshes)
protected GeometryConfig.AttributeArrayConfig[] createVertexAttribArrays(ModelConfig.Imported config)
ModelDef.TriMeshDef
createVertexAttribArrays in class ModelDef.TriMeshDefprotected String getDefaultTag()
ModelDef.TriMeshDef
getDefaultTag in class ModelDef.TriMeshDef
protected GeometryConfig createGeometry(Box bounds,
GeometryConfig.AttributeArrayConfig[] vertexAttribArrays,
ClientArrayConfig[] texCoordArrays,
ClientArrayConfig colorArray,
ClientArrayConfig normalArray,
ClientArrayConfig vertexArray)
ModelDef.TriMeshDef
createGeometry in class ModelDef.TriMeshDef
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||