Class xlifepp::Rectangle#
-
class Rectangle : public xlifepp::Parallelogram#
-
Inheritence diagram for xlifepp::Rectangle:
Collaboration diagram for xlifepp::Rectangle:
definition of a rectangular geometry in R^3
Rectangle constructors are based on a key-value system. Here are the available keys:
_v1, _v2, _v4: to define the vertices of the Rectangle, counterclockwise oriented
_center: to define the center of the Rectangle
_origin: to define the first vertex of the Rectangle (same definition as _v1)
_xlength, _ylength: the lengths of the Rectangle
_xmin, _xmax, _ymin, _ymax: to define the Rectangle v1=(xmin, ymin), v2=(xmax, ymin), v4=(xmin, ymax)
_nnodes: to define the number of nodes on each edge of the Rectangle
_hsteps: to define the local mesh steps on the vertices of the Rectangle
_domain_name: to define the domain name
_side_names: to define the side names
_varnames: to define the variable names for print purpose
Subclassed by xlifepp::SquareGeo
Public Functions
-
Rectangle()#
-
default constructor
default rectangle is [0,1]^2
-
Rectangle(const Point &p1, const Point &p2, const Point &p4, const std::vector<number_t> &n = std::vector<number_t>(4, 2), const string_t &domName = string_t())#
-
default constructor with 3 points
-
Rectangle(const Point &p1, const Point &p2, const Point &p4, const std::vector<real_t> &h, const string_t &domName = string_t())#
-
default constructor with 3 points
-
Rectangle(Parameter p1, Parameter p2, Parameter p3, Parameter p4, Parameter p5)#
-
constructor with 5 Parameter
-
Rectangle(Parameter p1, Parameter p2, Parameter p3, Parameter p4, Parameter p5, Parameter p6)#
-
constructor with 6 Parameter
-
Rectangle(Parameter p1, Parameter p2, Parameter p3, Parameter p4, Parameter p5, Parameter p6, Parameter p7)#
-
constructor with 7 Parameter
-
inline virtual ~Rectangle()#
-
destructor
-
virtual string_t asString() const#
-
format as string
-
inline virtual void computeMB()#
-
computes the minimal box
-
inline virtual Rectangle &homothetize(const Parameter &p1)#
-
apply a homothety on a Rectangle (1 key)
-
inline virtual Rectangle &homothetize(const Parameter &p1, const Parameter &p2)#
-
apply a homothety on a Rectangle (2 keys)
-
inline virtual Rectangle &homothetize(const Point &c = Point(0., 0., 0.), real_t factor = 1.)#
-
apply a homothety on a Rectangle
-
inline virtual real_t measure() const#
-
surface of the parallelogram
-
inline virtual Rectangle &pointReflect(const Parameter &p1)#
-
apply a point reflection on a Rectangle (1 key)
-
inline virtual Rectangle &pointReflect(const Point &c = Point(0., 0., 0.))#
-
apply a point reflection on a Rectangle
-
inline virtual Rectangle &reflect2d(const Parameter &p1)#
-
apply a reflection2d on a Rectangle (1 key)
-
inline virtual Rectangle &reflect2d(const Parameter &p1, const Parameter &p2)#
-
apply a reflection2d on a Rectangle (2 keys)
-
inline virtual Rectangle &reflect2d(const Point &c, real_t dx, real_t dy = 0.)#
-
apply a reflection2d on a Rectangle
-
inline virtual Rectangle &reflect2d(const Point &c = Point(0., 0.), std::vector<real_t> d = std::vector<real_t>(2, 0.))#
-
apply a reflection2d on a Rectangle
-
inline virtual Rectangle &reflect3d(const Parameter &p1)#
-
apply a reflection3d on a Rectangle (1 key)
-
inline virtual Rectangle &reflect3d(const Parameter &p1, const Parameter &p2)#
-
apply a reflection3d on a Rectangle (2 keys)
-
inline virtual Rectangle &reflect3d(const Point &c, real_t nx, real_t ny, real_t nz = 0.)#
-
apply a reflection3d on a Rectangle
-
inline virtual Rectangle &reflect3d(const Point &c = Point(0., 0., 0.), std::vector<real_t> n = std::vector<real_t>(3, 0.))#
-
apply a reflection3d on a Rectangle
-
inline virtual Rectangle &rotate2d(const Parameter &p1, const Parameter &p2)#
-
apply a rotation 2D on a Rectangle (2 keys)
-
inline virtual Rectangle &rotate2d(const Point &c, real_t angle = 0.)#
-
apply a rotation 2D on a Rectangle
-
inline virtual Rectangle &rotate3d(const Parameter &p1, const Parameter &p2)#
-
apply a rotation 3D on a Rectangle (2 keys)
-
inline virtual Rectangle &rotate3d(const Parameter &p1, const Parameter &p2, const Parameter &p3)#
-
apply a rotation 3D on a Rectangle (3 keys)
-
inline virtual Rectangle &rotate3d(const Point &c, real_t dx, real_t dy, real_t angle)#
-
apply a rotation on a Rectangle
-
inline virtual Rectangle &rotate3d(const Point &c, real_t dx, real_t dy, real_t dz, real_t angle)#
-
apply a rotation on a Rectangle
-
inline virtual Rectangle &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 Rectangle
-
inline virtual Rectangle &rotate3d(real_t dx, real_t dy, real_t angle)#
-
apply a rotation 3D on a Rectangle
-
inline virtual Rectangle &rotate3d(real_t dx, real_t dy, real_t dz, real_t angle)#
-
apply a rotation 3D on a Rectangle
-
virtual std::vector<std::pair<ShapeType, std::vector<const Point*>>> surfs() const#
-
returns list of surfaces (const)
-
virtual Rectangle &transform(const Transformation &t)#
-
apply a geometrical transformation on a Rectangle
-
inline virtual Rectangle &translate(const Parameter &p1)#
-
apply a translation on a Rectangle (1 key)