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...
Public Member Functions | |
pyramid (polygonRef base, const Point &apex) | |
Construct from base polygon and apex point. More... | |
pyramid (Istream &) | |
Construct from Istream. More... | |
const Point & | apex () const |
Return apex point. More... | |
polygonRef | base () const |
Return base polygon. More... | |
Point | centre (const pointField &points) const |
Return centre (centroid) More... | |
vector | height (const pointField &points) const |
Return height vector. More... | |
scalar | mag (const pointField &points) const |
Return scalar magnitude - returns volume of pyramid. More... | |
Private Attributes | |
polygonRef | base_ |
PointRef | apex_ |
Friends | |
Istream & | operator>> (Istream &, pyramid &) |
Ostream & | operator (Ostream &, const pyramid &) |
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.
Construct from base polygon and apex point.
Definition at line 34 of file pyramidI.H.
|
inline |
Return apex point.
Definition at line 55 of file pyramidI.H.
|
inline |
Return base polygon.
Definition at line 61 of file pyramidI.H.
|
inline |
Return centre (centroid)
Definition at line 69 of file pyramidI.H.
References points.
Referenced by cellModel::centre().
|
inline |
|
inline |
Return scalar magnitude - returns volume of pyramid.
Definition at line 90 of file pyramidI.H.
References points.
Referenced by cellModel::centre(), and cellModel::mag().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.