public class EmitterMeshConvexHullShape extends EmitterMeshFaceShape
normals, vertices| Constructor and Description |
|---|
EmitterMeshConvexHullShape()
Empty constructor.
|
EmitterMeshConvexHullShape(java.util.List<Mesh> meshes)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
getRandomPoint(Vector3f store)
This method fills the point with coordinates of randomly selected point inside a convex hull
of randomly selected mesh.
|
void |
getRandomPointAndNormal(Vector3f store,
Vector3f normal)
This method fills the point with coordinates of randomly selected point inside a convex hull
of randomly selected mesh.
|
setMeshescloneFields, deepClone, jmeClone, read, writepublic EmitterMeshConvexHullShape()
public EmitterMeshConvexHullShape(java.util.List<Mesh> meshes)
meshes - a list of meshes that will form the emitter's shapepublic void getRandomPoint(Vector3f store)
getRandomPoint in interface EmitterShapegetRandomPoint in class EmitterMeshFaceShapestore - the variable to store with coordinates of randomly selected selected point inside a convex hull
of randomly selected meshpublic void getRandomPointAndNormal(Vector3f store, Vector3f normal)
getRandomPointAndNormal in interface EmitterShapegetRandomPointAndNormal in class EmitterMeshFaceShapestore - the variable to store with coordinates of randomly selected selected point inside a convex hull
of randomly selected meshnormal - not used in this class