Class xlifepp::Cuboid#
-
class Cuboid : public xlifepp::Parallelepiped#
-
Inheritance diagram for xlifepp::Cuboid:
Collaboration diagram for xlifepp::Cuboid:
definition of a cuboid (=rectangular parallelepiped) geometry in R^3
Cuboid constructors are based on a key-value system. Here are the available keys:
_v1, _v2, _v4, _v5: to define the vertices of the Cuboid
_center: to define the center of the Cuboid
_origin: to define the first vertex of the Cuboid (same definition as _v1)
_xlength, _ylength, _zlength: the lengths of the Cuboid
_xmin, _xmax, _ymin, _ymax, _zmin, _zmax: to define the Cuboid v1=(xmin, ymin, zmin), v2=(xmax, ymin, zmin), v4=(xmin, ymax, zmin), v5=(xmin, ymin, zmax)
_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/_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
Subclassed by xlifepp::Cube
Public Functions
-
Cuboid()#
-
default constructor
-
virtual string_t asString() const#
-
format as string
-
inline virtual void computeMB()#
-
computes the minimal box
-
inline virtual Cuboid &homothetize(const Parameter &p1, const Parameter &p2)#
-
apply a homothety on a Cuboid (2 keys)
-
inline virtual Cuboid &homothetize(const Point &c = Point(0., 0., 0.), real_t factor = 1.)#
-
apply a homothety on a Cuboid
-
inline virtual real_t measure() const#
-
return the length/area/volume of the geometry
-
inline virtual Cuboid &pointReflect(const Parameter &p1)#
-
apply a point reflection on a Cuboid (1 key)
-
inline virtual Cuboid &pointReflect(const Point &c = Point(0., 0., 0.))#
-
apply a point reflection on a Cuboid
-
inline virtual Cuboid &reflect2d(const Parameter &p1, const Parameter &p2)#
-
apply a reflection2d on a Cuboid (2 keys)
-
inline virtual Cuboid &reflect2d(const Point &c, real_t dx, real_t dy = 0.)#
-
apply a reflection2d on a Cuboid
-
inline virtual Cuboid &reflect2d(const Point &c = Point(0., 0.), std::vector<real_t> d = std::vector<real_t>(2, 0.))#
-
apply a reflection2d on a Cuboid
-
inline virtual Cuboid &reflect3d(const Parameter &p1, const Parameter &p2)#
-
apply a reflection3d on a Cuboid (2 keys)
-
inline virtual Cuboid &reflect3d(const Point &c, real_t nx, real_t ny, real_t nz = 0.)#
-
apply a reflection3d on a Cuboid
-
inline virtual Cuboid &reflect3d(const Point &c = Point(0., 0., 0.), std::vector<real_t> n = std::vector<real_t>(3, 0.))#
-
apply a reflection3d on a Cuboid
-
inline virtual Cuboid &rotate2d(const Parameter &p1, const Parameter &p2)#
-
apply a rotation 2D on a Cuboid (2 keys)
-
inline virtual Cuboid &rotate3d(const Parameter &p1, const Parameter &p2)#
-
apply a rotation 3D on a Cuboid (2 keys)
-
inline virtual Cuboid &rotate3d(const Parameter &p1, const Parameter &p2, const Parameter &p3)#
-
apply a rotation 3D on a Cuboid (3 keys)
-
inline virtual Cuboid &rotate3d(const Point &c, real_t dx, real_t dy, real_t angle)#
-
apply a rotation on a Cuboid
-
inline virtual Cuboid &rotate3d(const Point &c, real_t dx, real_t dy, real_t dz, real_t angle)#
-
apply a rotation on a Cuboid
-
inline virtual Cuboid &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 Cuboid
-
inline virtual Cuboid &rotate3d(real_t dx, real_t dy, real_t angle)#
-
apply a rotation 3D on a Cuboid
-
inline virtual Cuboid &rotate3d(real_t dx, real_t dy, real_t dz, real_t angle)#
-
apply a rotation 3D on a Cuboid
-
virtual void setFaces()#
-
set the faces vector when built
-
virtual Cuboid &transform(const Transformation &t)#
-
apply a geometrical transformation on a Cuboid