Is a type of Body representing a sphere in 3D.
Definition BodySphere.h:17
void setParticlesPerDirection(Vector3d ppd)
Definition BodySphere.h:41
Vector3d center
Create a sphere in space.
Definition BodySphere.h:50
void setDiameter(double diameter)
Definition BodySphere.h:29
Vector3d particlesPerDirection
particles per direction
Definition BodySphere.h:52
int materialId
material identification
Definition BodySphere.h:56
virtual void setMaterialId(int material_id)
Configure the material id.
Definition BodySphere.h:35
virtual int getMaterialId() const
Return the material identification.
Definition BodySphere.h:39
double diameter
diameter of the sphere
Definition BodySphere.h:54
void setCenter(Vector3d center)
Definition BodySphere.h:31
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:15