|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.scene.plugins.blender.meshes.MeshContext
public class MeshContext
Class that holds information about the mesh.
Constructor Summary | |
---|---|
MeshContext()
|
Method Summary | |
---|---|
void |
addUVCoordinates(Geometry geometry,
VertexBuffer vertexBuffer)
This method adds the mesh's UV-coordinates. |
VertexBuffer |
getBindNormalBuffer()
|
VertexBuffer |
getBindPoseBuffer()
|
int |
getMaterialIndex(Geometry geometry)
Returns material index for the geometry. |
VertexBuffer |
getUVCoordinates(Geometry geometry)
This method returns the mesh's UV-coordinates. |
int |
getVertexCount(int materialIndex)
|
java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> |
getVertexReferenceMap(int materialIndex)
This method returns the vertex reference map. |
void |
putGeometry(java.lang.Integer materialIndex,
Geometry geometry)
Adds a geometry for the specified material index. |
void |
setBindNormalBuffer(VertexBuffer bindNormalBuffer)
This method sets the bind buffer for vertices. |
void |
setBindPoseBuffer(VertexBuffer bindPoseBuffer)
This method sets the bind buffer for normals. |
void |
setVertexReferenceMap(java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>>> vertexReferenceMap)
This method sets the vertex reference map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MeshContext()
Method Detail |
---|
public void putGeometry(java.lang.Integer materialIndex, Geometry geometry)
materialIndex
- the material indexgeometry
- the geometrypublic int getVertexCount(int materialIndex)
materialIndex
- the material index
public int getMaterialIndex(Geometry geometry)
geometry
- the geometry
java.lang.IllegalStateException
- this exception is thrown when no material is found for the specified geometrypublic java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> getVertexReferenceMap(int materialIndex)
public void setVertexReferenceMap(java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>>> vertexReferenceMap)
vertexReferenceMap
- the vertex reference mappublic void addUVCoordinates(Geometry geometry, VertexBuffer vertexBuffer)
geometry
- the mesh that has the UV-coordinatesvertexBuffer
- the mesh's UV-coordinatespublic VertexBuffer getUVCoordinates(Geometry geometry)
geometry
- the mesh
public void setBindNormalBuffer(VertexBuffer bindNormalBuffer)
bindNormalBuffer
- the bind buffer for verticespublic VertexBuffer getBindNormalBuffer()
public void setBindPoseBuffer(VertexBuffer bindPoseBuffer)
bindNormalBuffer
- the bind buffer for normalspublic VertexBuffer getBindPoseBuffer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |