40 #ifndef Foam_pyramid_H 41 #define Foam_pyramid_H 53 template<
class Po
int,
class Po
intRef,
class PolygonRef>
class pyramid;
55 template<
class Po
int,
class Po
intRef,
class PolygonRef>
62 template<
class Po
int,
class Po
intRef,
class PolygonRef>
80 template<
class Po
int,
class Po
intRef,
class PolygonRef>
112 const Point&
apex()
const {
return apex_; }
115 PolygonRef
base()
const {
return base_; }
132 friend Istream&
operator>> <
Point, PointRef, PolygonRef>
138 friend Ostream& operator<< <Point, PointRef, PolygonRef>
pyramid(PolygonRef base, const Point &apex)
Construct from base polygon and apex point.
PolygonRef base() const
The base polygon.
scalar mag(const UList< point > &points) const
Return scalar magnitude - returns volume of pyramid.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
pyramid< point, const point &, const face & > pyramidPointFaceRef
A pyramid using referred point and face.
vector height(const UList< point > &points) const
Return height vector.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
OBJstream os(runTime.globalPath()/outputName)
Point centre(const UList< point > &points) const
Return centre (centroid)
const Point & apex() const
The apex point.
Point point_type
The point type.
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.