Description
hi professor,I could not understand the class BSplineElements, and what is the function of the class BSplineElements?
1、suppose; Degree =2 and res =8 = 1<<3 ; I get BSplineElements b1(res, k, 1, 0);[k indexes the center of the B-spline]
2、when k =0 ;then b1 is 7 Triples : { {0,1,1}; {0,0,1};{0,0,0}; {0,0,0};{0,0,0};{0,0,0};{0,0,0};}
does the b1 on interval [0,1] is 1*(-x^2 + x + 1/2) + 1*(1/2 x^2 - x + 1/2) , and on interval[1,2] is 1*(1/2 x^2 - x + 1/2) and 0 on the other intervals? and if I am right , why ?
3、 when k =1; then b1 is 7 thriples:{ {1,0,0}; {0,1,0};{0,0,1}; {0,0,0};{0,0,0};{0,0,0};{0,0,0};}
does the b1 on interval [0,1] is 1*(1/2 x^2) , and on interval[1,2] is 1*(-x^2 + x + 1/2) and on interval [2,3] is 1*(1/2 x^2 - x + 1/2) and 0 on the other intervals? and if I am right , why ?
Activity