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