A geometric pyramid primitive with a base of 'n' sides: i.e. a parametric pyramid. A pyramid is constructed from a base polygon and an apex point. More...
#include <pyramid.H>

Public Types | |
| typedef Point | point_type |
| The point type. | |
Public Member Functions | |
| pyramid (PolygonRef base, const Point &apex) | |
| Construct from base polygon and apex point. | |
| pyramid (Istream &is) | |
| Construct from Istream. | |
| const Point & | apex () const |
| The apex point. | |
| PolygonRef | base () const |
| The base polygon. | |
| Point | centre (const UList< point > &points) const |
| Return centre (centroid). | |
| vector | height (const UList< point > &points) const |
| Return height vector. | |
| scalar | mag (const UList< point > &points) const |
| Return scalar magnitude - returns volume of pyramid. | |
Friends | |
| Istream & | operator>> (Istream &is, pyramid &p) |
| Ostream & | operator (Ostream &os, const pyramid &p) |
A geometric pyramid primitive with a base of 'n' sides: i.e. a parametric pyramid. A pyramid is constructed from a base polygon and an apex point.
| typedef Point point_type |
|
inline |
Construct from base polygon and apex point.
Definition at line 26 of file pyramidI.H.
References apex(), and base().

Construct from Istream.
Definition at line 38 of file pyramidI.H.
|
inline |
|
inline |
Return centre (centroid).
Definition at line 47 of file pyramidI.H.
References points.
Referenced by cell::centre(), and cellModel::centre().

|
inline |
Return height vector.
Definition at line 57 of file pyramidI.H.
References points.
Referenced by mag().

|
inline |
Return scalar magnitude - returns volume of pyramid.
Definition at line 68 of file pyramidI.H.
References height(), and points.
Referenced by cell::centre(), cellModel::centre(), polyMeshGeometry::checkFacePyramids(), primitiveMeshGeometry::checkFacePyramids(), primitiveMeshTools::facePyramidVolume(), and cellModel::mag().


|
friend |
|
friend |