Class xlifepp::RevCone#
-
class RevCone : public xlifepp::RevTrunk#
-
Inheritence diagram for xlifepp::RevCone:
Collaboration diagram for xlifepp::RevCone:
A truncated cone of revolution is defined by its axis (P1,P2) and two radii R1 and R2.
R1 (resp. R2) is the radius of the circle lying in the plane orthogonal to (P1,P2) passing by P1 (resp. P2). R1 (or R2) can be 0, in which case we get a cone of revolution. See more details at RevTrunk.
RevCone constructors are based on a key-value system. Here are the available keys:
_center: to define the center of the basis
_apex: the apex of the RevCone
_radius: the radius of the basis
_end_shape: the shape of extension part on the end of the RevCone
_end_distance: the length of extension part on the end of the RevCone
_nbsubdomains: the number of slices of the RevCone (subdivision mesh generator only)
_type: indicator to fit curved boundaries (default) or not which gives flat (or plane) boundaries
_nnodes: to define the number of nodes on the edges of the RevCone
_hsteps: to define the local mesh steps on build points of the RevCone
_domain_name: to define the domain name
_side_names: to define the side names
_varnames: to define the variable names for print purpose
Public Functions
-
RevCone()#
-
default constructor
-
RevCone(Parameter p1, Parameter p2, Parameter p3, Parameter p4, Parameter p5)#
-
constructor with 5 Parameter
-
RevCone(Parameter p1, Parameter p2, Parameter p3, Parameter p4, Parameter p5, Parameter p6)#
-
constructor with 6 Parameter
-
RevCone(Parameter p1, Parameter p2, Parameter p3, Parameter p4, Parameter p5, Parameter p6, Parameter p7)#
-
constructor with 7 Parameter
-
RevCone(Parameter p1, Parameter p2, Parameter p3, Parameter p4, Parameter p5, Parameter p6, Parameter p7, Parameter p8)#
-
constructor with 8 Parameter
-
RevCone(Parameter p1, Parameter p2, Parameter p3, Parameter p4, Parameter p5, Parameter p6, Parameter p7, Parameter p8, Parameter p9)#
-
constructor with 9 Parameter
-
RevCone(Parameter p1, Parameter p2, Parameter p3, Parameter p4, Parameter p5, Parameter p6, Parameter p7, Parameter p8, Parameter p9, Parameter p10)#
-
constructor with 10 Parameter
-
virtual string_t asString() const#
-
format as string
format as string: “RevCone (C1=(.,.,.), C2=(.,.,.), radius1=R1, radius2=R2)”
-
inline virtual void computeMB()#
-
compute the minimal box for a composite/loop geometry
compute the minimal box
-
inline virtual RevCone &homothetize(const Parameter &p1, const Parameter &p2)#
-
apply a homothety on a RevCone (2 keys)
-
inline virtual RevCone &homothetize(const Point &c = Point(0., 0., 0.), real_t factor = 1.)#
-
apply a homothety on a RevCone
-
inline virtual RevCone &pointReflect(const Parameter &p1)#
-
apply a point reflection on a RevCone (1 key)
-
inline virtual RevCone &pointReflect(const Point &c = Point(0., 0., 0.))#
-
apply a point reflection on a RevCone
-
inline virtual RevCone &reflect2d(const Parameter &p1, const Parameter &p2)#
-
apply a reflection2d on a RevCone (2 keys)
-
inline virtual RevCone &reflect2d(const Point &c, real_t dx, real_t dy = 0.)#
-
apply a reflection2d on a RevCone
-
inline virtual RevCone &reflect2d(const Point &c = Point(0., 0.), std::vector<real_t> d = std::vector<real_t>(2, 0.))#
-
apply a reflection2d on a RevCone
-
inline virtual RevCone &reflect3d(const Parameter &p1, const Parameter &p2)#
-
apply a reflection3d on a RevCone (2 keys)
-
inline virtual RevCone &reflect3d(const Point &c, real_t nx, real_t ny, real_t nz = 0.)#
-
apply a reflection3d on a RevCone
-
inline virtual RevCone &reflect3d(const Point &c = Point(0., 0., 0.), std::vector<real_t> n = std::vector<real_t>(3, 0.))#
-
apply a reflection3d on a RevCone
-
inline virtual RevCone &rotate2d(const Parameter &p1, const Parameter &p2)#
-
apply a rotation 2D on a RevCone (2 keys)
-
inline virtual RevCone &rotate2d(const Point &c, real_t angle = 0.)#
-
apply a rotation 2D on a RevCone
-
inline virtual RevCone &rotate3d(const Parameter &p1, const Parameter &p2)#
-
apply a rotation 3D on a RevCone (2 keys)
-
inline virtual RevCone &rotate3d(const Parameter &p1, const Parameter &p2, const Parameter &p3)#
-
apply a rotation 3D on a RevCone (3 keys)
-
inline virtual RevCone &rotate3d(const Point &c, real_t dx, real_t dy, real_t angle)#
-
apply a rotation on a RevCone
-
inline virtual RevCone &rotate3d(const Point &c, real_t dx, real_t dy, real_t dz, real_t angle)#
-
apply a rotation on a RevCone
-
inline virtual RevCone &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 RevCone
-
inline virtual RevCone &rotate3d(real_t dx, real_t dy, real_t angle)#
-
apply a rotation 3D on a RevCone
-
inline virtual RevCone &rotate3d(real_t dx, real_t dy, real_t dz, real_t angle)#
-
apply a rotation 3D on a RevCone
-
virtual RevCone &transform(const Transformation &t)#
-
apply a geometrical transformation on a RevCone