|
| BodyCuboid () |
| Default constructor.
|
|
virtual | ~BodyCuboid () |
| Default constructor.
|
|
void | setPoints (const Vector3d &point_1, const Vector3d &point_2) |
| Configure the geometrical points of the cuboid.
|
|
virtual void | setMaterialId (int material_id) |
| Configure the material id.
|
|
virtual int | getMaterialId () const |
| Return the material identification.
|
|
virtual void | create (Mesh &mesh, Material *material) |
| Create a cuboid in space.
|
|
Public Member Functions inherited from Body |
| Body () |
| Default constructor.
|
|
virtual | ~Body () |
| Default destructor.
|
|
int | getId () const |
| Return the body identification.
|
|
Vector3d | getInitialVelocity () const |
| Return the initial velocity of the body.
|
|
vector< Particle * > * | getParticles () |
| Return the particles forming the body.
|
|
void | setId (int body_id) |
| Configure the id of the body.
|
|
void | setInitialVelocity (Vector3d initial_velocity) |
| Configure the initial velocity of the body.
|
|
void | setParticles (const vector< Particle * > &particle_list) |
| Configure the particles in the body.
|
|
void | insertParticles (const vector< Particle * > &particle_list) |
| Add particles to the current particle list.
|
|
Is a type of Body representing a cuboid in 3D.
Cuboid definition
The cuboid in geometrically defined by the coordinates of the lower left point (Point 1) and the higher right point (Point 2). See Figure bellow.
Cuboid
----------
|\ |\
| \ | \
z | \ | \
| | ----------+ <-- Point 2
| | | | |
+---- y Point 1 --> + --|------ |
\ \ | \ |
\ \ | \ |
x \| \|
----------