5#include "warpxm/warpxm_config.h"
18 std::vector<real> _tx, _ty;
22 std::vector<real> _lx, _ly;
23 std::vector<real> _hx, _hy;
24 std::vector<std::vector<real>> _wx, _wy;
32 _tx = WmUDGFunctions::parseStringForVector<real>(file,
"knotX");
33 _ty = WmUDGFunctions::parseStringForVector<real>(file,
"knotY");
34 _c = WmUDGFunctions::parseStringForVector<real>(file,
"coefs");
35 _kx = WmUDGFunctions::parseStringForValue<int>(file,
"degreeX");
36 _ky = WmUDGFunctions::parseStringForValue<int>(file,
"degreeY");
62 const std::vector<real>& y,
63 std::vector<std::vector<real>>& spline_value)
67 throw WxExcept(
"Not allowed to have more than one evaluated point.");
71 throw WxExcept(
"Not allowed to have more than one evaluated point.");
75 _lx, _ly, _hx, _hy, _wx, _wy,
76 _mx, _my, x, y, spline_value);
The elements needed to evaluate the 2D B-spline.
Definition: BsplineEvaluator2D.h:16
BsplineEvaluator2D(const std::string &filename)
Definition: BsplineEvaluator2D.h:28
void eval_spline_2d(const std::vector< real > &x, const std::vector< real > &y, std::vector< std::vector< real > > &spline_value)
Evaluate 2D B-spline values at (x, y), given the knot vectors and coefficients stored in the class Bs...
Definition: BsplineEvaluator2D.h:61
std::string readFile(const std::string &filename)
Definition: wmudgfunctions.h:174
void eval_spline2d(const std::vector< real > &tx, const std::vector< real > &ty, const int nx, const int ny, const std::vector< real > &c, const int kx, const int ky, std::vector< real > &lx, std::vector< real > &ly, std::vector< real > &hx, std::vector< real > &hy, std::vector< std::vector< real > > &wx, std::vector< std::vector< real > > &wy, const int mx, const int my, const std::vector< real > &x, const std::vector< real > &y, std::vector< std::vector< real > > &SplineValue2D)
Evaluate 2D B-spline values at (x, y), given the knots vector and coefficients.
wxm::lib::Except WxExcept
Definition: wxexcept.h:120