13CAD
CAD-like software based on C++, Qt and VTK.
 All Classes Files Functions Variables Friends
Public Member Functions | Protected Attributes | List of all members
Cell Class Reference

#include <cell.h>

Inheritance diagram for Cell:
Hexahedron Pyramid Tetrahedron

Public Member Functions

virtual double getVolume ()
 
double getMass ()
 
std::vector< Vector3DgetVertices ()
 
Vector3D getCentre ()
 
Material getMaterial ()
 

Protected Attributes

std::vector< Vector3Dvertices
 
Material material
 

Detailed Description

Shape defined by 2 or more vertices (Vector3D).

Member Function Documentation

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>

double Cell::getVolume ( )
virtual

Get volume of the cell

Reimplemented in Tetrahedron, Hexahedron, and Pyramid.

Member Data Documentation

Material Cell::material
protected

Material that the cell is made of

std::vector<Vector3D> Cell::vertices
protected

Vertices that define the cell


The documentation for this class was generated from the following files: