Class xlifepp::Cylinder#
-
class Cylinder : public xlifepp::Trunk#
-
Inheritence diagram for xlifepp::Cylinder:
Collaboration diagram for xlifepp::Cylinder:
A cylinder is a volume defined by a section (the basis) and a direction vector The direction vector is not necessarily orthogonal to the basis, but both bases are necessarily parallel A Cylinder is a Trunk with scale factor equal to 1 !!!
Cylinder constructors are based on a key-value system. Here are the available keys:
_basis: to define the geometrical basis of a Cylinder (a child object of Surface)
_direction: a direction vector of the axis of the Cylinder
_center1, _center2: to define centers of bases when they are elliptical
_v1, _v2: to define apogees of the basis when it is elliptical
_nnodes: to define the number of nodes on the edges of the Cylinder
_hsteps: to define the local mesh steps on build points of the Cylinder
_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::Prism
Public Functions
-
Cylinder(bool defineBasisAndP = true)#
-
default constructor
-
Cylinder(const Surface &basis, const std::vector<real_t> &direction)#
-
default constructor with basis and direction
-
Cylinder(Parameter p1, Parameter p2, Parameter p3, Parameter p4, Parameter p5)#
-
constructor with 5 Parameter
-
Cylinder(Parameter p1, Parameter p2, Parameter p3, Parameter p4, Parameter p5, Parameter p6)#
-
constructor with 6 Parameter
-
Cylinder(Parameter p1, Parameter p2, Parameter p3, Parameter p4, Parameter p5, Parameter p6, Parameter p7)#
-
constructor with 7 Parameter
-
virtual string_t asString() const#
-
format as string
-
inline virtual void computeMB()#
-
compute the minimal box for a composite/loop geometry
compute the minimal box
-
inline virtual Cylinder &homothetize(const Parameter &p1, const Parameter &p2)#
-
apply a homothety on a Cylinder (2 keys)
-
inline virtual Cylinder &homothetize(const Point &c = Point(0., 0., 0.), real_t factor = 1.)#
-
apply a homothety on a Cylinder
-
inline virtual Cylinder &pointReflect(const Parameter &p1)#
-
apply a point reflection on a Cylinder (1 key)
-
inline virtual Cylinder &pointReflect(const Point &c = Point(0., 0., 0.))#
-
apply a point reflection on a Cylinder
-
inline virtual Cylinder &reflect2d(const Parameter &p1, const Parameter &p2)#
-
apply a reflection2d on a Cylinder (2 keys)
-
inline virtual Cylinder &reflect2d(const Point &c, real_t dx, real_t dy = 0.)#
-
apply a reflection2d on a Cylinder
-
inline virtual Cylinder &reflect2d(const Point &c = Point(0., 0.), std::vector<real_t> d = std::vector<real_t>(2, 0.))#
-
apply a reflection2d on a Cylinder
-
inline virtual Cylinder &reflect3d(const Parameter &p1, const Parameter &p2)#
-
apply a reflection3d on a Cylinder (2 keys)
-
inline virtual Cylinder &reflect3d(const Point &c, real_t nx, real_t ny, real_t nz = 0.)#
-
apply a reflection3d on a Cylinder
-
inline virtual Cylinder &reflect3d(const Point &c = Point(0., 0., 0.), std::vector<real_t> n = std::vector<real_t>(3, 0.))#
-
apply a reflection3d on a Cylinder
-
inline virtual Cylinder &rotate2d(const Parameter &p1, const Parameter &p2)#
-
apply a rotation 2D on a Cylinder (2 keys)
-
inline virtual Cylinder &rotate2d(const Point &c, real_t angle = 0.)#
-
apply a rotation 2D on a Cylinder
-
inline virtual Cylinder &rotate3d(const Parameter &p1, const Parameter &p2)#
-
apply a rotation 3D on a Cylinder (2 keys)
-
inline virtual Cylinder &rotate3d(const Parameter &p1, const Parameter &p2, const Parameter &p3)#
-
apply a rotation 3D on a Cylinder (3 keys)
-
inline virtual Cylinder &rotate3d(const Point &c, real_t dx, real_t dy, real_t angle)#
-
apply a rotation on a Cylinder
-
inline virtual Cylinder &rotate3d(const Point &c, real_t dx, real_t dy, real_t dz, real_t angle)#
-
apply a rotation on a Cylinder
-
inline virtual Cylinder &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 Cylinder
-
inline virtual Cylinder &rotate3d(real_t dx, real_t dy, real_t angle)#
-
apply a rotation 3D on a Cylinder
-
inline virtual Cylinder &rotate3d(real_t dx, real_t dy, real_t dz, real_t angle)#
-
apply a rotation 3D on a Cylinder
-
virtual std::vector<std::pair<ShapeType, std::vector<const Point*>>> surfs() const#
-
returns list of faces (const)
-
virtual Cylinder &transform(const Transformation &t)#
-
apply a geometrical transformation on a Cylinder