Class xlifepp::SplineSurface#
-
class SplineSurface : public xlifepp::Surface#
-
Inheritence diagram for xlifepp::SplineSurface:
Collaboration diagram for xlifepp::SplineSurface:
definition of a SplineSurface geometry in R^3 from a Nurbs object (non uniform rational Bspline) only nurbs are available either approximation nurbs or interpolation nurbs (default when subtype is not specified)
SplineSurface 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)
_nbu: number of control/interpolation points in u-direction (_Nurbs only)
_spline_parametrization: spline parametrization type, one of _xParametrization, _uniformParametrization,_chordalParametrization, _centripetalParametrization
_weights: weights of control points (for _BSpline 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
-
SplineSurface()#
-
default constructor
default is a void SplineSurface (spline_=0)
-
SplineSurface(const SplineSurface&)#
-
copy constructor
-
SplineSurface(Parameter p1)#
-
constructor with Parameters
-
virtual ~SplineSurface()#
-
destructor
-
virtual string_t asString() const#
-
format as string
-
virtual Geometry &buildBoundary() const#
-
create boundary geometry of SplineSurface (composite of SplineArc (BSpline))
create boundary geometry of SplineSurface (nurbs), a composite geometry of 4 SplineArc defined from BSpline with the following weights and control points built from weights and control points of Nurbs wi = sum_j wij.Bjq(v) and Pi=sum_j wij.Bjq(v)Pij/wi v=0 or v=1 wj = sum_i wij.Bip(u) and Pi=sum_i wij.Bip(u)Pij/wi u=0 or u=1 note that when wij=1 for any i,j, wi=wj=1 for any i,j
interface to nurbs parametrization (u,v in [0,1])
-
inline virtual Surface *cloneS() const#
-
virtual copy constructor for Geometry
virtual copy constructor for Surface
-
void copy(const SplineSurface&)#
-
real copy
copy tool (hard copy)
-
Vector<real_t> funParametrization(const Point &pt, Parameters &pars, DiffOpType d = _id) const#
-
interface to spline parametrization
inverse of parametrization
-
inline virtual SplineSurface &homothetize(const Parameter &p1)#
-
apply a homothety on a SplineSurface (1 key)
-
inline virtual SplineSurface &homothetize(const Parameter &p1, const Parameter &p2)#
-
apply a homothety on a SplineSurface (2 keys)
-
inline virtual SplineSurface &homothetize(const Point &c = Point(0., 0., 0.), real_t factor = 1.)#
-
apply a homothety on a SplineSurface
-
inline virtual SplineSurface &homothetize(real_t factor)#
-
apply a homothety on a SplineSurface
-
Vector<real_t> invParametrization(const Point &pt, Parameters &pars, DiffOpType d = _id) const#
-
interface to spline parametrization
-
SplineSurface &operator=(const SplineSurface&)#
-
assign operator
-
inline virtual SplineSurface &pointReflect(const Parameter &p1)#
-
apply a point reflection on a SplineSurface (1 key)
-
inline virtual SplineSurface &pointReflect(const Point &c = Point(0., 0., 0.))#
-
apply a point reflection on a SplineSurface
-
inline virtual SplineSurface &reflect2d(const Parameter &p1)#
-
apply a reflection2d on a SplineSurface (1 key)
-
inline virtual SplineSurface &reflect2d(const Parameter &p1, const Parameter &p2)#
-
apply a reflection2d on a SplineSurface (2 keys)
-
inline virtual SplineSurface &reflect2d(const Point &c, real_t dx, real_t dy = 0.)#
-
apply a reflection2d on a SplineSurface
-
inline virtual SplineSurface &reflect2d(const Point &c = Point(0., 0.), std::vector<real_t> d = std::vector<real_t>(2, 0.))#
-
apply a reflection2d on a SplineSurface
-
inline virtual SplineSurface &reflect3d(const Parameter &p1)#
-
apply a reflection3d on a SplineSurface (1 key)
-
inline virtual SplineSurface &reflect3d(const Parameter &p1, const Parameter &p2)#
-
apply a reflection3d on a SplineSurface (2 keys)
-
inline virtual SplineSurface &reflect3d(const Point &c, real_t nx, real_t ny, real_t nz = 0.)#
-
apply a reflection3d on a SplineSurface
-
inline virtual SplineSurface &reflect3d(const Point &c = Point(0., 0., 0.), std::vector<real_t> n = std::vector<real_t>(3, 0.))#
-
apply a reflection3d on a SplineSurface
-
inline virtual SplineSurface &rotate2d(const Parameter &p1)#
-
apply a rotation 2D on a SplineSurface (1 key)
-
inline virtual SplineSurface &rotate2d(const Parameter &p1, const Parameter &p2)#
-
apply a rotation 2D on a SplineSurface (2 keys)
-
inline virtual SplineSurface &rotate2d(const Point &c, real_t angle = 0.)#
-
apply a rotation 2D on a SplineSurface
-
inline virtual SplineSurface &rotate3d(const Parameter &p1)#
-
apply a rotation 3D on a SplineSurface (1 key)
-
inline virtual SplineSurface &rotate3d(const Parameter &p1, const Parameter &p2)#
-
apply a rotation 3D on a SplineSurface (2 keys)
-
inline virtual SplineSurface &rotate3d(const Parameter &p1, const Parameter &p2, const Parameter &p3)#
-
apply a rotation 3D on a SplineSurface (3 keys)
-
inline virtual SplineSurface &rotate3d(const Point &c, real_t dx, real_t dy, real_t angle)#
-
apply a rotation on a SplineSurface
-
inline virtual SplineSurface &rotate3d(const Point &c, real_t dx, real_t dy, real_t dz, real_t angle)#
-
apply a rotation on a SplineSurface
-
inline virtual SplineSurface &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 SplineSurface
-
inline virtual SplineSurface &rotate3d(real_t dx, real_t dy, real_t angle)#
-
apply a rotation 3D on a SplineSurface
-
inline virtual SplineSurface &rotate3d(real_t dx, real_t dy, real_t dz, real_t angle)#
-
apply a rotation 3D on a SplineSurface
-
inline virtual SplineSurface *splineSurface()#
-
access to child SplineSurface object
-
inline virtual const SplineSurface *splineSurface() const#
-
access to child SplineSurface object (const)
-
virtual SplineSurface &transform(const Transformation &t)#
-
apply a geometrical transformation on a SplineSurface
apply a geometrical transformation to a SplineSurface
-
inline virtual SplineSurface &translate(const Parameter &p1)#
-
apply a translation on a SplineSurface (1 key)
-
inline virtual SplineSurface &translate(real_t ux, real_t uy = 0., real_t uz = 0.)#
-
apply a translation on a SplineSurface (3 reals version)
-
inline virtual SplineSurface &translate(std::vector<real_t> u)#
-
apply a translation on a SplineSurface (vector version)