#include <cell.h>
Public Member Functions | |
| virtual double | getVolume () |
| double | getMass () |
| std::vector< Vector3D > | getVertices () |
| Vector3D | getCentre () |
| Material | getMaterial () |
Protected Attributes | |
| std::vector< Vector3D > | vertices |
| Material | material |
Shape defined by 2 or more vertices (Vector3D).
| Vector3D Cell::getCentre | ( | ) |
Get the centre of gravity of the cell based on the vertices
| double Cell::getMass | ( | ) |
Get mass of the cell
| Material Cell::getMaterial | ( | ) |
Get material of the cell
| std::vector< Vector3D > Cell::getVertices | ( | ) |
Get vertices of the cell as a std::vector<Vector3D>
|
virtual |
Get volume of the cell
Reimplemented in Tetrahedron, Hexahedron, and Pyramid.
|
protected |
Vertices that define the cell
1.8.6