alexfranke
Senior Member
Uniform Knot Vector Produces Clamped b-Splines
Hi all,
I'm trying to implement a closed b-spline by wrapping the first p control points to the past p points and providing a uniform knot vector to [a_valid_sketch].Figures.AddBspline(). However, it appears that when the curve is rendered, it is clamped to the start and end control points, as if the first and last p+1 knots equal to their respective ends of the domain. (Actually it looks like the order of the curve is reduced while approaching the first and last conrtol points so that it's 2 by the time it reaches it.)
For example, where:
order == 4
numPoint == 7
points == {1,1,1,-1,-1,-1,-1,1,1,1,1,-1,-1,-1 }
knots == { 0,1,2,3,5,6,7,8,9,10,11 }
weights == { 0,0,0,0,0,0 }
Any ideas?
Thanks,
Alex Franke
Hi all,
I'm trying to implement a closed b-spline by wrapping the first p control points to the past p points and providing a uniform knot vector to [a_valid_sketch].Figures.AddBspline(). However, it appears that when the curve is rendered, it is clamped to the start and end control points, as if the first and last p+1 knots equal to their respective ends of the domain. (Actually it looks like the order of the curve is reduced while approaching the first and last conrtol points so that it's 2 by the time it reaches it.)
For example, where:
order == 4
numPoint == 7
points == {1,1,1,-1,-1,-1,-1,1,1,1,1,-1,-1,-1 }
knots == { 0,1,2,3,5,6,7,8,9,10,11 }
weights == { 0,0,0,0,0,0 }
Any ideas?
Thanks,
Alex Franke