Is a Body created by a list of particles.
More...
#include <BodyParticle.h>
Is a Body created by a list of particles.
Introduction
This class allows to create a 3D body in the space by a list of particles.
◆ BodyParticle()
| BodyParticle::BodyParticle |
( |
| ) |
|
◆ ~BodyParticle()
| BodyParticle::~BodyParticle |
( |
| ) |
|
◆ create()
| virtual void BodyParticle::create |
( |
Mesh & |
mesh, |
|
|
Material * |
material |
|
) |
| |
|
virtual |
Create a body in space using particles.
- Parameters
-
Implements Body.
◆ getMaterialId()
| virtual int BodyParticle::getMaterialId |
( |
| ) |
const |
|
inlinevirtual |
Return the material identification.
- Returns
- Material identification
Implements Body.
◆ getParticles()
| vector< Particle * > * BodyParticle::getParticles |
( |
| ) |
|
|
inline |
Return the particles forming the body.
- Returns
- A reference to a vector containing Particle pointers
◆ insertParticles()
| void BodyParticle::insertParticles |
( |
const vector< Particle * > & |
particle_list | ) |
|
|
inline |
Add particles to the current particle list.
- Parameters
-
| [in] | particle_list | A vector containing pointers to particles |
◆ setMaterialId()
| virtual void BodyParticle::setMaterialId |
( |
int |
material_id | ) |
|
|
inlinevirtual |
Configure the material id.
- Parameters
-
Implements Body.
◆ setParticles()
| void BodyParticle::setParticles |
( |
const vector< Particle * > & |
particle_list | ) |
|
|
inline |
Configure the particles in the body.
- Parameters
-
| [in] | particle_list | A vector containing pointers to the particle |
◆ materialId
| int BodyParticle::materialId |
|
private |
The documentation for this class was generated from the following file: