Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 16

B-splines: Beyond Bézier for Complex Curves

Recommended resources

In our previous lessons on parametric curves, we developed a solid understanding of Bézier curves, defining them first with Bernstein polynomials and then constructing them geometrically with the de Casteljau algorithm. We concluded by noting a significant limitation: for a single Bézier curve, adding more control points to create complex shapes drastically increases the polynomial degree, making the curve unwieldy and leading to a loss of intuitive, local control.

Today, we will address this challenge head-on by introducing B-splines, or Basis Splines. Our goal is to explain the properties of B-spline curves and demonstrate their advantages over single Bézier curves for designing the complex, free-flowing forms common in contemporary architecture. You will discover that B-splines are a powerful generalization of Bézier curves, offering far greater flexibility and control.

The Problem with a Single, High-Degree Curve

Let's begin by cementing our understanding of why a single, high-degree Bézier curve is often impractical for complex design. While we can theoretically add any number of control points to a Bézier curve, the consequences are undesirable.

The following video masterfully illustrates this issue. Pay close attention to the discussion of "local control."

The Continuity of Splines

This video from Freya Holmér's series on splines provides an excellent recap of Bézier curves and then clearly demonstrates the drawbacks of simply increasing the number of control points.

Watch the segment from "a cubic bézier curve doesn’t get us very far". The key takeaway here is observing how moving a single control point affects the entire shape of a high-degree curve.

As you saw, this "global control" makes precise adjustments nearly impossible. If an architect wants to tweak one part of a long, curving facade, they don't want the entire structure to ripple in response. This is the fundamental problem that B-splines were invented to solve.


B-Splines: A More Powerful Approach

The core idea behind B-splines is simple yet profound: instead of making one single, high-degree curve, we create a composite curve by smoothly stitching together multiple lower-degree curve segments. This is a piecewise approach.

A B-spline is defined by three key ingredients:

  1. A set of control points , just like with Bézier curves.
  2. A degree , which defines the degree of the underlying polynomial pieces (e.g., degree 3 for cubic B-splines).
  3. A knot vector , which is a non-decreasing sequence of parameter values.

The crucial difference is that the degree is now decoupled from the number of control points. We can have dozens of control points to define a complex shape while still using simple cubic segments, avoiding the wild oscillations and computational complexity of high-degree polynomials. The knot vector is the new component that controls how the basis functions are shaped and where the curve segments join.

The formula for a B-spline curve looks very similar to a Bézier curve, but uses different basis functions, , which are determined by the degree and the knot vector:

The mathematical machinery behind the basis functions and knot vector is elegant. Let's get a formal introduction from these course notes.

[PDF] MA 323 Geometric Modelling Course Notes: Day 22 B-Splines and ...

These notes provide a concise, mathematical introduction to B-splines, their basis functions, and the role of the knot vector.

Please read the following sections: The introduction in Section 22.1, which contrasts B-splines with Bézier curves. The definition of the basis functions and the knot sequence in Section 22.2. The recursive formula (Cox-de Boor) is the B-spline equivalent of de Casteljau's algorithm. The definition of a B-spline curve in Section 22.3. Finally, read the short section 22.4 on the relationship between the number of points, knots, and the degree. Pay attention to the formula m = n + p + 1 (using p for degree, where the text uses k-1), which connects these three components.


The Power of Continuity and Local Control

The true advantage of B-splines lies in their inherent properties of local control and guaranteed smoothness (continuity).

Local Control

As we established, this is the primary advantage. Moving a control point only influences the curve in the parameter range where its corresponding basis function is non-zero. This locality allows for precise and predictable edits, essential for architectural design.

The following reading illustrates this property perfectly.

B-spline Curves: Important Properties

This webpage from a course on computer graphics by Dr. C.-K. Shene provides excellent visual explanations of B-spline properties.

Read property #5, "Local Modification Scheme". Observe in the accompanying images how moving control point \mathbf{P}_2 only affects the adjacent curve segments, while the rest of the curve remains unchanged.

Guaranteed Smoothness

When we want to create a complex shape by joining Bézier curves, we have to manually enforce conditions to make the connections smooth. This smoothness is measured by continuity:

  • C⁰ continuity: The curves meet (positional continuity).
  • C¹ continuity: The velocity is continuous (tangents align and have the same magnitude).
  • C² continuity: The acceleration is continuous.

Achieving C² continuity with cubic Bézier segments forces a chain reaction of constraints that destroys local control. B-splines, by their very definition, are constructed to be C^(p-k) continuous at a knot of multiplicity k. For a standard cubic B-spline with simple knots, this means it is automatically C² continuous everywhere. This built-in smoothness is why they are the standard for high-quality, "Class-A" surfaces in industrial design, from car bodies to phone casings.

The same video from Freya Holmér provides the best explanation of this concept available. It walks through the pain of enforcing continuity with Béziers and reveals B-splines as the elegant solution.

The Continuity of Splines

This video will now guide you through the concepts of parametric continuity and demonstrate why B-splines are superior for creating highly smooth curves.

This is a longer segment, but it's crucial for understanding the core advantage of B-splines. First, watch the section on joining Bézier curves and defining continuity from "And so this, is where we need to talk about a concept, called Continuity". The key part is the "cascading problem" that arises when trying to enforce C² continuity. Then, jump to the finale where B-splines are introduced as the solution. Watch from "And isn’t this a little frustrating?". This demonstrates how B-splines achieve C² continuity while maintaining local control.


Comparing Curve Properties

We can now summarize the properties of B-splines and contrast them with Bézier curves. The following table gives a high-level overview.

This table compares the fundamental properties of four major curve types used in Computer-Aided Geometric Design (CAGD). For our purposes, focus on the columns for Bézier and B-Spline.

Let's walk through the key differences highlighted in this table:

  • Local Control: This is the most important distinction. B-splines have it, single Bézier curves do not.
  • Interpolation of first and last control point: Bézier curves always pass through their start and end points. Standard B-splines do not, which allows them to form closed, periodic loops easily. However, by using a specific knot vector structure ("clamped" or "open"), B-splines can also be forced to interpolate their endpoints.
  • Tangency to the control polygon: A Bézier curve is always tangent to the first and last segments of its control polygon. This is not generally true for a B-spline, unless it is clamped.
  • Recurrent bases: This refers to the recursive definition. Both de Casteljau for Béziers and Cox-de Boor for B-splines are recursive algorithms. The table's "No" for Bézier is a bit misleading in this context; what it likely means is that the B-spline basis functions are defined recursively on the knots, a property the Bernstein polynomials don't share in the same way.

To cement these advantages, please read the final summary from the "Important Properties" resource.

B-spline Curves: Important Properties

This final section of the webpage summarizes the practical benefits of using B-splines.

Read the section titled "The Advantage of Using B-spline Curves".


Conclusion

In this lesson, we have seen how B-splines overcome the fundamental limitations of single Bézier curves, making them a far more powerful and flexible tool for complex geometric design in architecture and engineering.

Here are the key takeaways:

  • B-splines are piecewise curves, composed of multiple low-degree segments joined together smoothly.
  • Their primary advantage is local control, allowing for precise edits without affecting the entire curve.
  • The degree of the curve is independent of the number of control points, enabling complex forms to be defined by low-degree, computationally efficient polynomials.
  • B-splines offer built-in C² continuity (for cubic splines with simple knots), guaranteeing a level of smoothness that is difficult and restrictive to achieve by manually joining Bézier curves.
  • A knot vector is the key new ingredient that governs the shape of the basis functions and the continuity at the joins between segments.

While B-splines are incredibly powerful, they are still polynomial curves. This means they cannot perfectly represent simple conic sections like circles, ellipses, or hyperbolas. To achieve this final level of geometric precision, we need to introduce one more concept: weights. This will lead us to our next topic, NURBS (Non-Uniform Rational B-Splines), the undisputed standard for geometric representation in modern CAD software.