53template<
class Po
int,
class Po
intRef,
class PolygonRef>
class pyramid;
55template<
class Po
int,
class Po
intRef,
class PolygonRef>
62template<
class Po
int,
class Po
intRef,
class PolygonRef>
80template<
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>
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A geometric pyramid primitive with a base of 'n' sides: i.e. a parametric pyramid....
const point & apex() const
pyramid(Istream &is)
Construct from Istream.
vector height(const UList< point > &points) const
Return height vector.
scalar mag(const UList< point > &points) const
Return scalar magnitude - returns volume of pyramid.
friend Ostream & operator(Ostream &os, const pyramid &p)
pyramid(PolygonRef base, const Point &apex)
Construct from base polygon and apex point.
Point centre(const UList< point > &points) const
Return centre (centroid).
const face & base() const
OBJstream os(runTime.globalPath()/outputName)
pyramid< point, const point &, const face & > pyramidPointFaceRef
A pyramid using referred point and face.