Hi !
(Correct me if I am wrong here)
The PointsToBSpline method creates a spline curve that will pass through all the control points.
If you create a spline curve manually you will get the correct result.
The size of the knot vector is number of control points + degree + 1.
If you want the ends of the curve to pass through the first and last control point (normally what you want) then the first and last knot should have multiplicty set to same as degree.
Example: Spline curve with 5 control points and degree 3.
Knot vector size should be 5+3+1=9 (but with multiplicities on first and last we get 5 knots.
So knot vector should be something like: 0 1 2 3 4 And multiplicty vector should be 3 1 1 1 3
Then you should have a spline curve.
Remeber the important rules: Knot vector size is number of control points + degree + 1. First and last knot multiplicity same as degree.
I hope that helps a bit.
Commenter-1