Is a Body created by a list of particles.
Definition BodyParticle.h:17
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:43
void setParticles(const vector< Particle * > &particle_list)
Configure the particles in the body.
Definition BodyParticle.h:39
virtual void setMaterialId(int material_id)
Configure the material id.
Definition BodyParticle.h:31
virtual int getMaterialId() const
Return the material identification.
Definition BodyParticle.h:35
vector< Particle * > * getParticles()
Return the particles forming the body.
Definition BodyParticle.h:47
int materialId
material identification
Definition BodyParticle.h:56
Represents a body in the space forming by a group of materials points and identified by a number.
Definition Body.h:15
vector< Particle * > * getParticles()
Return the particles forming the body.
Definition Body.h:50
void insertParticles(const vector< Particle * > &particle_list)
Add particles to the current particle list.
Definition Body.h:66