Google Classroom
GeoGebraGeoGebra Classroom

b-spline.js - understanding knot_vector

m+1 points,
  • p0,…,pm
in the app
  • m=5
and polynom
  • degree n
and the Knot Vector
  • U=(u0,…,un+m+1)

b0 b1 b2 b3 b4 bn Spline of polynomial-base b(1,2,3,4) generated by CURVE2 (degree 2), CURVE3 (degree 3) scripts - corresponding to a standard knot vector - Execution not automated. - B(0,n) repeated knots (2 times) at start and end - see Parametric Curves. pre defined steps=100, set steps=nn - in command line for an other resolution ... spline plot density (step points with polyline) slider a0 knot0...2, a1 knot+1 , a2 knot+2 , a3 knot+3 , a4 knotn+m-1...n+m+1
  • for degree 2, 3 - on/off []
Extend P with additional points/knots. I don't think my js.code is very elegant or fast - i stay very close to the mathematical notation as i understand it to keep the code readable and I hope comprehensible. apart from the knot vector length check red/green, no input checks are carried out.