G+Smo  23.12.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsBSplineSolver< T > Class Template Reference

Detailed Description

template<class T>
class gismo::gsBSplineSolver< T >

A univariate root solver for B-spline curves.

Public Member Functions

bool firstRoot (gsBSpline< T > const &bsp, int const &coord=0, T const &tr=0, T const &tol=1e-7, unsigned const &N=100)
 Return true if the first root exist, the value of the root is in this->value()
 
 gsBSplineSolver ()
 Default empty constructor.
 
bool nextRoot ()
 Next root (requires that first root has been called before)
 
value ()
 The value of the current root.
 
 ~gsBSplineSolver ()
 Destructor.
 

Private Member Functions

void initSolver (gsBSpline< T > const &bsp, int const &coord, T const &tr, T const &tol, unsigned const &N)
 Initialize the solver with B-spline data.
 
int insertKnot (int mu)
 

Member Function Documentation

int insertKnot ( int  mu)
private

insert knot x in interval mu by Boehms algorithm Note: t,c must have size at least n+1, n+d+2 respectively require that x>=t[mu]