Is a Body created by a list of particles.
Definition BodyParticle.h:21
virtual void create(Mesh &mesh, Material *material)
Create a body in space using particles.
void insertParticles(const vector< Particle * > &particle_list)
Add particles to the current particle list.
Definition BodyParticle.h:47
void setParticles(const vector< Particle * > &particle_list)
Configure the particles in the body.
Definition BodyParticle.h:43
virtual void setMaterialId(int material_id)
Configure the material id.
Definition BodyParticle.h:35
virtual int getMaterialId() const
Return the material identification.
Definition BodyParticle.h:39
vector< Particle * > * getParticles()
Return the particles forming the body.
Definition BodyParticle.h:51
int materialId
material identification
Definition BodyParticle.h:60
Represents a body in the space forming by a group of materials points and identified by a number.
Definition Body.h:19
vector< Particle * > * getParticles()
Return the particles forming the body.
Definition Body.h:54
void insertParticles(const vector< Particle * > &particle_list)
Add particles to the current particle list.
Definition Body.h:70