Class xlifepp::Pyramid#

class Pyramid : public xlifepp::Cone#

definition of a pyramidal geometry in R^3

Pyramid constructors are based on a key-value system. Here are the available keys:

  • _basis: to define the geometrical basis of a Pyramid (a child object of Polygon)

  • _apex: the apex of the Pyramid

  • _v1, _v2, _v3, _v4: to define vertices of the basis when it is quadrangular

  • _nnodes: to define the number of nodes on the edges of the Pyramid

  • _hsteps: to define the local mesh steps on build points of the Pyramid

  • _domain_name: to define the domain name

  • _side_names/_face_name: to define the side names

  • _edge_name: to define the side of side names

  • _vertex_name: to define the side of side of side names

  • _varnames: to define the variable names for print purpose

Public Functions

Pyramid()#

default constructor

Pyramid(const Pyramid &p)#

copy constructor

Pyramid(Parameter p1, Parameter p2)#

key-value constructor

virtual string_t asString() const#

format as string

inline virtual Geometry *clone() const#

virtual copy constructor

virtual void collect(const string_t &n, std::list<Geometry*>&) const#

collect in a all canonical geometry’s with name n

collect all canonical geometry’s with name n

inline virtual Pyramid &homothetize(const Parameter &p1)#

apply a homothety on a Pyramid (1 key)

inline virtual Pyramid &homothetize(const Parameter &p1, const Parameter &p2)#

apply a homothety on a Pyramid (2 keys)

inline virtual Pyramid &homothetize(const Point &c = Point(0., 0., 0.), real_t factor = 1.)#

apply a homothety on a Pyramid

inline virtual Pyramid &homothetize(real_t factor)#

apply a homothety on a Pyramid

inline number_t n1() const#

accessor to number of element on edge

inline Point p1() const#

accessor to point

inline virtual Pyramid &pointReflect(const Parameter &p1)#

apply a point reflection on a Pyramid (1 key)

inline virtual Pyramid &pointReflect(const Point &c = Point(0., 0., 0.))#

apply a point reflection on a Pyramid

inline virtual Pyramid *pyramid()#

access to child Pyramid object

inline virtual const Pyramid *pyramid() const#

access to child Pyramid object (const)

inline virtual Pyramid &reflect2d(const Parameter &p1)#

apply a reflection2d on a Pyramid (1 key)

inline virtual Pyramid &reflect2d(const Parameter &p1, const Parameter &p2)#

apply a reflection2d on a Pyramid (2 keys)

inline virtual Pyramid &reflect2d(const Point &c, real_t dx, real_t dy = 0.)#

apply a reflection2d on a Pyramid

inline virtual Pyramid &reflect2d(const Point &c = Point(0., 0.), std::vector<real_t> d = std::vector<real_t>(2, 0.))#

apply a reflection2d on a Pyramid

inline virtual Pyramid &reflect3d(const Parameter &p1)#

apply a reflection3d on a Pyramid (1 key)

inline virtual Pyramid &reflect3d(const Parameter &p1, const Parameter &p2)#

apply a reflection3d on a Pyramid (2 keys)

inline virtual Pyramid &reflect3d(const Point &c, real_t nx, real_t ny, real_t nz = 0.)#

apply a reflection3d on a Pyramid

inline virtual Pyramid &reflect3d(const Point &c = Point(0., 0., 0.), std::vector<real_t> n = std::vector<real_t>(3, 0.))#

apply a reflection3d on a Pyramid

inline virtual Pyramid &rotate2d(const Parameter &p1)#

apply a rotation 2D on a Pyramid (1 key)

inline virtual Pyramid &rotate2d(const Parameter &p1, const Parameter &p2)#

apply a rotation 2D on a Pyramid (2 keys)

inline virtual Pyramid &rotate2d(const Point &c, real_t angle = 0.)#

apply a rotation 2D on a Pyramid

inline virtual Pyramid &rotate3d(const Parameter &p1)#

apply a rotation 3D on a Pyramid (1 key)

inline virtual Pyramid &rotate3d(const Parameter &p1, const Parameter &p2)#

apply a rotation 3D on a Pyramid (2 keys)

inline virtual Pyramid &rotate3d(const Parameter &p1, const Parameter &p2, const Parameter &p3)#

apply a rotation 3D on a Pyramid (3 keys)

inline virtual Pyramid &rotate3d(const Point &c, real_t dx, real_t dy, real_t angle)#

apply a rotation on a Pyramid

inline virtual Pyramid &rotate3d(const Point &c, real_t dx, real_t dy, real_t dz, real_t angle)#

apply a rotation on a Pyramid

inline virtual Pyramid &rotate3d(const Point &c, std::vector<real_t> d = std::vector<real_t>(3, 0.), real_t angle = 0.)#

apply a rotation 3D on a Pyramid

inline virtual Pyramid &rotate3d(real_t dx, real_t dy, real_t angle)#

apply a rotation 3D on a Pyramid

inline virtual Pyramid &rotate3d(real_t dx, real_t dy, real_t dz, real_t angle)#

apply a rotation 3D on a Pyramid

virtual std::vector<std::pair<ShapeType, std::vector<const Point*>>> surfs() const#

returns list of faces (const)

virtual Pyramid &transform(const Transformation &t)#

apply a geometrical transformation on a Pyramid

inline virtual Pyramid &translate(const Parameter &p1)#

apply a translation on a Pyramid (1 key)

inline virtual Pyramid &translate(real_t ux, real_t uy = 0., real_t uz = 0.)#

apply a translation on a Pyramid (3 reals version)

inline virtual Pyramid &translate(std::vector<real_t> u)#

apply a translation on a Pyramid (vector version)