Class xlifepp::SplineArc#
-
class SplineArc : public xlifepp::Curve#
-
Inheritence diagram for xlifepp::SplineArc:
Collaboration diagram for xlifepp::SplineArc:
definition of a spline geometry in R^3
SplineArc constructors are based on a key-value system. Here are the available keys:
_vertices: list of control points
_spline: spline object
_spline_type: type of spline one of _C2Spline, _CatmullRomSpline, _BSpline, _BezierSpline, _Nurbs
_spline_subtype: subtype of spline, one of _SplineInterpolation, _SplineApproximation
_spline_BC: spline boundary condition, one of _naturalBC, _clampedBC, _periodicBC
_degree: degree of spline (default 3)
_tension: tension factor for _CatmullRomSpline
_spline_parametrization: spline parametrization type, one of _xParametrization, _uniformParametrization,_chordalParametrization, _centripetalParametrization
_weights: weights of control points (for _BSpline only)
_tangent_0, _tangent_1: tangent vectors at the bounds of the arc (for _clampedBC only)
_nnodes: to define the number of nodes on the arc
_hsteps: to define the local mesh steps on the bounds
_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
-
SplineArc()#
-
default constructor
default is a void spline (spline_=0)
-
SplineArc(Parameter p1)#
-
constructor with Parameters
-
~SplineArc()#
-
destructor
-
virtual string_t asString() const#
-
format as string
-
virtual std::vector<std::pair<ShapeType, std::vector<const Point*>>> curves() const#
-
return curves, here only one
-
Vector<real_t> funParametrization(const Point &pt, Parameters &pars, DiffOpType d = _id) const#
-
interface to spline parametrization
inverse of parametrization
-
inline virtual SplineArc &homothetize(const Parameter &p1)#
-
apply a homothety on a SplineArc (1 key)
-
inline virtual SplineArc &homothetize(const Parameter &p1, const Parameter &p2)#
-
apply a homothety on a SplineArc (2 keys)
-
inline virtual SplineArc &homothetize(const Point &c = Point(0., 0., 0.), real_t factor = 1.)#
-
apply a homothety on a SplineArc
-
Vector<real_t> invParametrization(const Point &pt, Parameters &pars, DiffOpType d = _id) const#
-
interface to spline parametrization
-
inline virtual bool isClosed() const#
-
accessor to know if the curve is closed or not
-
inline virtual SplineArc &pointReflect(const Parameter &p1)#
-
apply a point reflection on a SplineArc (1 key)
-
inline virtual SplineArc &pointReflect(const Point &c = Point(0., 0., 0.))#
-
apply a point reflection on a SplineArc
-
virtual void printDetail(std::ostream&) const#
-
print additional information
interface to spline parametrization (t in [0,1])
-
inline virtual SplineArc &reflect2d(const Parameter &p1)#
-
apply a reflection2d on a SplineArc (1 key)
-
inline virtual SplineArc &reflect2d(const Parameter &p1, const Parameter &p2)#
-
apply a reflection2d on a SplineArc (2 keys)
-
inline virtual SplineArc &reflect2d(const Point &c, real_t dx, real_t dy = 0.)#
-
apply a reflection2d on a SplineArc
-
inline virtual SplineArc &reflect2d(const Point &c = Point(0., 0.), std::vector<real_t> d = std::vector<real_t>(2, 0.))#
-
apply a reflection2d on a SplineArc
-
inline virtual SplineArc &reflect3d(const Parameter &p1)#
-
apply a reflection3d on a SplineArc (1 key)
-
inline virtual SplineArc &reflect3d(const Parameter &p1, const Parameter &p2)#
-
apply a reflection3d on a SplineArc (2 keys)
-
inline virtual SplineArc &reflect3d(const Point &c, real_t nx, real_t ny, real_t nz = 0.)#
-
apply a reflection3d on a SplineArc
-
inline virtual SplineArc &reflect3d(const Point &c = Point(0., 0., 0.), std::vector<real_t> n = std::vector<real_t>(3, 0.))#
-
apply a reflection3d on a SplineArc
-
inline virtual SplineArc &rotate2d(const Parameter &p1, const Parameter &p2)#
-
apply a rotation 2D on a SplineArc (2 keys)
-
inline virtual SplineArc &rotate2d(const Point &c, real_t angle = 0.)#
-
apply a rotation 2D on a SplineArc
-
inline virtual SplineArc &rotate3d(const Parameter &p1, const Parameter &p2)#
-
apply a rotation 3D on a SplineArc (2 keys)
-
inline virtual SplineArc &rotate3d(const Parameter &p1, const Parameter &p2, const Parameter &p3)#
-
apply a rotation 3D on a SplineArc (3 keys)
-
inline virtual SplineArc &rotate3d(const Point &c, real_t dx, real_t dy, real_t angle)#
-
apply a rotation on a SplineArc
-
inline virtual SplineArc &rotate3d(const Point &c, real_t dx, real_t dy, real_t dz, real_t angle)#
-
apply a rotation on a SplineArc
-
inline virtual SplineArc &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 SplineArc
-
inline virtual SplineArc &rotate3d(real_t dx, real_t dy, real_t angle)#
-
apply a rotation 3D on a SplineArc
-
inline virtual SplineArc &rotate3d(real_t dx, real_t dy, real_t dz, real_t angle)#
-
apply a rotation 3D on a SplineArc
-
virtual SplineArc &transform(const Transformation &t)#
-
apply a geometrical transformation on a SplineArc
apply a geometrical transformation to a SplineArc
-
inline virtual SplineArc &translate(const Parameter &p1)#
-
apply a translation on a SplineArc (1 key)