B-Spline Curve with Knots

This Demonstration illustrates the relation between B-spline curves and their knot vectors. Start with the control points and a knot vector , where the degree of the B-spline is . The knot vector satisfies and . The B-spline basis functions are defined as:
,
and a B-spline curve is defined as:
.
For nonperiodic B-splines, the first knots are equal to 0 and the last knots are equal to 1. If duplication happens at the other knots, the curve becomes times differentiable. So, by overlapping the knots, you can generate a curve with sharp turns or even discontinuities.
When the number of control points is , the basis functions are reduced to Bernstein polynomial, thus the curve becomes a Bézier curve.

(91 lines omitted)

Red points indicate the knot points on the curve. Hold down the Alt key and click to add new control points (up to 12). Changes in degree and number of control points will cause the knot vector to be recomputed.
Choose "view basis functions" to show the B-spline basis functions of a given knot vector instead of the B-spline curve.
 
Powered by Wolfram Mathematica
Give us your feedback
Give us your feedback

Source page:




 often  occasionally  never

Note: Please do not include anything you consider confidential or proprietary. Your message and contact information may be shared with the author of any specific Demonstration for which you give feedback, but will not otherwise be published or distributed.
Privacy Policy »

Note: To run this Demonstration you need the free
Mathematica Player
or Mathematica 7+
Download or upgrade to Mathematica Player 7
I already have Mathematica Player or Mathematica 7+