|
||||||||||
| 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
public static class ModelDef.TriMeshDef
Represents a triangle mesh.
| Field Summary | |
|---|---|
boolean |
colored
Whether or not any of the vertices are non-white. |
ArrayList<Integer> |
indices
The triangle indices. |
float[] |
offsetRotation
|
float[] |
offsetScale
|
float[] |
offsetTranslation
The geometry offset transform. |
String |
tag
The mesh's tag, if any. |
String |
texture
The texture of the mesh, if any. |
com.threerings.opengl.model.tools.ModelDef.HashArrayList<ModelDef.Vertex> |
vertices
The vertices of the mesh. |
| Fields inherited from class com.threerings.opengl.model.tools.ModelDef.SpatialDef |
|---|
bone, childDefs, name, parent, parentDef, point, rotation, scale, translation |
| Constructor Summary | |
|---|---|
ModelDef.TriMeshDef()
|
|
| Method Summary | |
|---|---|
void |
addVertex(ModelDef.Vertex vertex)
Called by the parser to add a vertex to this mesh. |
CollisionMesh |
createCollisionMesh()
Creates and returns a collision mesh object for this mesh. |
ArticulatedConfig.Node |
createNode(ArticulatedConfig config,
boolean haveCollisionMesh)
Creates an articulation node. |
ModelConfig.VisibleMesh |
createVisibleMesh(ModelConfig.Imported config)
Creates and returns a visible mesh config for this mesh. |
Object |
getConfigurationKey()
Returns a key representing the configuration of this mesh that will be compared to others in order to determine which meshes can be merged. |
void |
merge(ModelDef.TriMeshDef omesh)
Merges another mesh (assumed to have the same configuration, transform, etc.) into this one. |
void |
mergeMeshes(HashMap<Object,ModelDef.TriMeshDef> meshes)
Merges meshes with the same properties under this node. |
void |
mergeMeshes(ModelDef.TriMeshDef mesh)
Merges all of the meshes under this node. |
| Methods inherited from class com.threerings.opengl.model.tools.ModelDef.SpatialDef |
|---|
createChildNodes, createMeshes, getTransformMatrix, mergeSkinMeshes, mergeSkinMeshes, removeBoneWeights, update |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public float[] offsetTranslation
public float[] offsetRotation
public float[] offsetScale
public String texture
public String tag
public com.threerings.opengl.model.tools.ModelDef.HashArrayList<ModelDef.Vertex> vertices
public ArrayList<Integer> indices
public boolean colored
| Constructor Detail |
|---|
public ModelDef.TriMeshDef()
| Method Detail |
|---|
public void addVertex(ModelDef.Vertex vertex)
public ArticulatedConfig.Node createNode(ArticulatedConfig config,
boolean haveCollisionMesh)
ModelDef.SpatialDef
createNode in class ModelDef.SpatialDefpublic void mergeMeshes(HashMap<Object,ModelDef.TriMeshDef> meshes)
ModelDef.SpatialDef
mergeMeshes in class ModelDef.SpatialDefpublic void mergeMeshes(ModelDef.TriMeshDef mesh)
ModelDef.SpatialDef
mergeMeshes in class ModelDef.SpatialDefpublic Object getConfigurationKey()
public void merge(ModelDef.TriMeshDef omesh)
public ModelConfig.VisibleMesh createVisibleMesh(ModelConfig.Imported config)
public CollisionMesh createCollisionMesh()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||