Represents a body in the space forming by a group of materials points and identified by a number.
Definition Body.h:19
Vector3d getInitialVelocity() const
Return the initial velocity of the body.
Definition Body.h:50
vector< Particle * > * getParticles()
Return the particles forming the body.
Definition Body.h:54
void setId(int body_id)
Configure the id of the body.
Definition Body.h:58
virtual int getMaterialId() const =0
Return the material id.
Vector3d initial_velocity
initial velocity of the body
Definition Body.h:75
void setInitialVelocity(Vector3d initial_velocity)
Configure the initial velocity of the body.
Definition Body.h:62
void setParticles(const vector< Particle * > &particle_list)
Configure the particles in the body.
Definition Body.h:66
void insertParticles(const vector< Particle * > &particle_list)
Add particles to the current particle list.
Definition Body.h:70
int getId() const
Return the body identification.
Definition Body.h:46
virtual void setMaterialId(int material_id)=0
Configure the material id.
vector< Particle * > particles
material points forming the body
Definition Body.h:76
virtual void create(Mesh &mesh, Material *material)=0
Create a body with particles and material.