29 #ifndef BSPLINE_DATA_INCLUDED
30 #define BSPLINE_DATA_INCLUDED
33 #include "ppolynomial.h"
41 template<
int Degree ,
class Real >
78 virtual void setValueTables(
int flags,
double valueSmooth,
double normalSmooth);
81 void setSampleSpan(
int idx ,
int& start ,
int& end ,
double smooth=0 )
const;
92 void set(
int maxDepth ,
bool useDotRatios=
true ,
bool reflectBoundary=
false );
94 inline int Index(
int i1 ,
int i2 )
const;
99 template<
int Degree >
107 template<
int Degree >
110 static const int _off = (Degree+1)/2;
111 void _addLeft (
int offset ,
int boundary );
112 void _addRight(
int offset ,
int boundary );
131 for(
int i=0 ; i<this->size() ; i++ )
134 for(
int j=0 ; j<=Degree ; j++ ) printf(
" %d" , (*
this)[i][j] );
146 #include "bspline_data.hpp"
148 #endif // BSPLINE_DATA_INCLUDED