Is a type of Body representing a sphere in 3D.
Definition BodySphere.h:21
void setParticlesPerDirection(Vector3d ppd)
Definition BodySphere.h:45
Vector3d center
Create a sphere in space.
Definition BodySphere.h:54
void setDiameter(double diameter)
Definition BodySphere.h:33
Vector3d particlesPerDirection
particles per direction
Definition BodySphere.h:56
int materialId
material identification
Definition BodySphere.h:60
virtual void setMaterialId(int material_id)
Configure the material id.
Definition BodySphere.h:39
virtual int getMaterialId() const
Return the material identification.
Definition BodySphere.h:43
double diameter
diameter of the sphere
Definition BodySphere.h:58
void setCenter(Vector3d center)
Definition BodySphere.h:35
virtual void create(Mesh &mesh, Material *material)
Create a body with particles and material.
Represents a body in the space forming by a group of materials points and identified by a number.
Definition Body.h:19