Class xlifepp::ParametrizedArc#
-
class ParametrizedArc : public xlifepp::Curve#
-
Inheritence diagram for xlifepp::ParametrizedArc:
Collaboration diagram for xlifepp::ParametrizedArc:
definition of a ParametrizedArc geometry in R^3 : x1(t), x2(t), x3(t) if an additional linear transformation T is applied to: T(x1(t),x2(t),x3(t)) = A(x1(t),x2(t),x3(t)) + b where a=T.mat() and b=T.vec()
ParametrizedArc constructors are based on a key-value system. Here are the available keys:
_tmin, _tmax: reals defining bounds of parameter t in parametrization
_parametrization: parametrization object is handled by Geometry
_partitioning: type of partition, one of _nonePartition*, _linearPartition, _splinePartition
_nbparts: number of partitions
_nnodes: to define the number of nodes on the Segment
_hsteps: to define the local mesh steps on the bounds of a Segment
_domain_name: to define the domain name
_side_names: to define the side names
-
_varnames: to define the variable names for print purpose
built at construction p1_,p2_, p_: bounds node and nodes As gmsh does not support parametrized curve, when exported to GMSH, ParametrizedArc is split into nbparts_
smaller segments (linearPartition)
smaller splines (_splinePartition) Be caution, the parameter t should be taken in the interval [0,1] when using the function parametrization_ParametrizedArc whereas it should be taken in [tmin,tmax] when using the object arc_parametrization
Public Functions
-
ParametrizedArc()#
-
default constructor
no default is the ParametrizedArc [0,1]
-
ParametrizedArc(const ParametrizedArc&)#
-
copy constructor
-
ParametrizedArc(Parameter p1, Parameter p2, Parameter p3, Parameter p4)#
-
constructor with 4 Parameter
-
ParametrizedArc(Parameter p1, Parameter p2, Parameter p3, Parameter p4, Parameter p5)#
-
constructor with 5 Parameter
-
inline ~ParametrizedArc()#
-
destructor
-
virtual string_t asString() const#
-
format as string
-
virtual std::vector<std::pair<ShapeType, std::vector<const Point*>>> curves() const#
-
returns list of curves (const)
parametrization: [transformation_ * ] arc_parametrization
-
Vector<real_t> funParametrization(const Point &pt, Parameters &pars, DiffOpType d = _id) const#
-
parametrization
inverse of parametrization
-
inline virtual ParametrizedArc &homothetize(const Parameter &p1)#
-
apply a homothety on a ParametrizedArc (1 key)
-
inline virtual ParametrizedArc &homothetize(const Parameter &p1, const Parameter &p2)#
-
apply a homothety on a ParametrizedArc (2 keys)
-
inline virtual ParametrizedArc &homothetize(const Point &c = Point(0., 0., 0.), real_t factor = 1.)#
-
apply a homothety on a ParametrizedArc
-
inline virtual ParametrizedArc &homothetize(real_t factor)#
-
apply a homothety on a ParametrizedArc
-
Vector<real_t> invParametrization(const Point &pt, Parameters &pars, DiffOpType d = _id) const#
-
inverse of parametrization
-
inline virtual bool isClosed() const#
-
true if last point is the same as first point
-
inline virtual real_t measure() const#
-
return the length/area/volume of the geometry
-
inline virtual ParametrizedArc *parametrizedArc()#
-
access to child ParametrizedArc object
-
inline virtual const ParametrizedArc *parametrizedArc() const#
-
access to child ParametrizedArc object (const)
-
inline Partitioning partitioning() const#
-
return Partitioning
-
inline virtual ParametrizedArc &pointReflect(const Parameter &p1)#
-
apply a point reflection on a ParametrizedArc (1 key)
-
inline virtual ParametrizedArc &pointReflect(const Point &c = Point(0., 0., 0.))#
-
apply a point reflection on a ParametrizedArc
-
inline virtual ParametrizedArc &reflect2d(const Parameter &p1)#
-
apply a reflection2d on a ParametrizedArc (1 key)
-
inline virtual ParametrizedArc &reflect2d(const Parameter &p1, const Parameter &p2)#
-
apply a reflection2d on a ParametrizedArc (2 keys)
-
inline virtual ParametrizedArc &reflect2d(const Point &c, real_t dx, real_t dy = 0.)#
-
apply a reflection2d on a ParametrizedArc
-
inline virtual ParametrizedArc &reflect2d(const Point &c = Point(0., 0.), std::vector<real_t> d = std::vector<real_t>(2, 0.))#
-
apply a reflection2d on a ParametrizedArc
-
inline virtual ParametrizedArc &reflect3d(const Parameter &p1)#
-
apply a reflection3d on a ParametrizedArc (1 key)
-
inline virtual ParametrizedArc &reflect3d(const Parameter &p1, const Parameter &p2)#
-
apply a reflection3d on a ParametrizedArc (2 keys)
-
inline virtual ParametrizedArc &reflect3d(const Point &c, real_t nx, real_t ny, real_t nz = 0.)#
-
apply a reflection3d on a ParametrizedArc
-
inline virtual ParametrizedArc &reflect3d(const Point &c = Point(0., 0., 0.), std::vector<real_t> n = std::vector<real_t>(3, 0.))#
-
apply a reflection3d on a ParametrizedArc
-
ParametrizedArc &reverse()#
-
reverse orientation of ParametrizedArc
-
inline virtual ParametrizedArc &rotate2d(const Parameter &p1)#
-
apply a rotation 2D on a ParametrizedArc (1 key)
-
inline virtual ParametrizedArc &rotate2d(const Parameter &p1, const Parameter &p2)#
-
apply a rotation 2D on a ParametrizedArc (2 keys)
-
inline virtual ParametrizedArc &rotate2d(const Point &c, real_t angle = 0.)#
-
apply a rotation 2D on a ParametrizedArc
-
inline virtual ParametrizedArc &rotate3d(const Parameter &p1)#
-
apply a rotation 3D on a ParametrizedArc (1 key)
-
inline virtual ParametrizedArc &rotate3d(const Parameter &p1, const Parameter &p2)#
-
apply a rotation 3D on a ParametrizedArc (2 keys)
-
inline virtual ParametrizedArc &rotate3d(const Parameter &p1, const Parameter &p2, const Parameter &p3)#
-
apply a rotation 3D on a ParametrizedArc (3 keys)
-
inline virtual ParametrizedArc &rotate3d(const Point &c, real_t dx, real_t dy, real_t angle)#
-
apply a rotation on a ParametrizedArc
-
inline virtual ParametrizedArc &rotate3d(const Point &c, real_t dx, real_t dy, real_t dz, real_t angle)#
-
apply a rotation on a ParametrizedArc
-
inline virtual ParametrizedArc &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 ParametrizedArc
-
inline virtual ParametrizedArc &rotate3d(real_t dx, real_t dy, real_t angle)#
-
apply a rotation 3D on a ParametrizedArc
-
inline virtual ParametrizedArc &rotate3d(real_t dx, real_t dy, real_t dz, real_t angle)#
-
apply a rotation 3D on a ParametrizedArc
-
inline real_t tmin() const#
-
accessor to parameter bounds
-
virtual ParametrizedArc &transform(const Transformation &t)#
-
apply a geometrical transformation on a ParametrizedArc
apply a geometrical transformation to a ParametrizedArc
-
inline virtual ParametrizedArc &translate(const Parameter &p1)#
-
apply a translation on a ParametrizedArc (1 key)
-
inline virtual ParametrizedArc &translate(real_t ux, real_t uy = 0., real_t uz = 0.)#
-
apply a translation on a ParametrizedArc (3 reals version)
-
inline virtual ParametrizedArc &translate(std::vector<real_t> u)#
-
apply a translation on a ParametrizedArc (vector version)