public class EmitterMeshVertexShape extends java.lang.Object implements EmitterShape
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.util.List<Vector3f>> |
normals |
protected java.util.List<java.util.List<Vector3f>> |
vertices |
Constructor and Description |
---|
EmitterMeshVertexShape()
Empty constructor.
|
EmitterMeshVertexShape(java.util.List<Mesh> meshes)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
cloneFields(Cloner cloner,
java.lang.Object original)
Called internally by com.jme3.util.clone.Cloner.
|
EmitterShape |
deepClone()
This method creates a deep clone of the current instance of the emitter shape.
|
void |
getRandomPoint(Vector3f store)
This method fills the point with coordinates of randomly selected mesh vertex.
|
void |
getRandomPointAndNormal(Vector3f store,
Vector3f normal)
This method fills the point with coordinates of randomly selected mesh vertex.
|
java.lang.Object |
jmeClone()
Called internally by com.jme3.util.clone.Cloner.
|
void |
read(JmeImporter im) |
void |
setMeshes(java.util.List<Mesh> meshes)
This method sets the meshes that will form the emitter's shape.
|
void |
write(JmeExporter ex) |
protected java.util.List<java.util.List<Vector3f>> vertices
protected java.util.List<java.util.List<Vector3f>> normals
public EmitterMeshVertexShape()
public EmitterMeshVertexShape(java.util.List<Mesh> meshes)
meshes
- a list of meshes that will form the emitter's shapepublic void setMeshes(java.util.List<Mesh> meshes)
meshes
- a list of meshes that will form the emitter's shapepublic void getRandomPoint(Vector3f store)
getRandomPoint
in interface EmitterShape
store
- the variable to store with coordinates of randomly selected mesh vertexpublic void getRandomPointAndNormal(Vector3f store, Vector3f normal)
getRandomPointAndNormal
in interface EmitterShape
store
- the variable to store with coordinates of randomly selected mesh vertexnormal
- filled with selected vertex's normalpublic EmitterShape deepClone()
EmitterShape
deepClone
in interface EmitterShape
public java.lang.Object jmeClone()
jmeClone
in interface JmeCloneable
public void cloneFields(Cloner cloner, java.lang.Object original)
cloneFields
in interface JmeCloneable
cloner
- The cloner that is performing the cloning operation. The
cloneFields method can call back into the cloner to make
clones of its subordinate fields.original
- The original object from which this object was cloned.
This is provided for the very rare case that this object needs
to refer to its original for some reason. In general, all of
the relevant values should have been transferred during the
shallow clone and this object need merely clone what it wants.public void write(JmeExporter ex) throws java.io.IOException
public void read(JmeImporter im) throws java.io.IOException