What Is a Spline? Math, Mechanics, and 3D Design

A spline is a curved shape defined by a set of control points, but the word refers to different things depending on the field. In mathematics, it’s a smooth curve built from smaller polynomial pieces stitched together. In mechanical engineering, it’s a series of ridges on a shaft that lock rotating parts together. In 3D modeling and computer graphics, splines are the curves that define the surfaces of everything from car bodies to animated characters. All three meanings share a common thread: using a set of points or features to control a smooth, precise shape.

The Mathematical Spline

A mathematical spline is a curve defined piecewise, meaning it’s actually made up of several smaller polynomial segments joined end to end. The most common type is the cubic spline, where each segment is a third-degree polynomial. The points where segments meet are called knots. What makes a spline special is that these segments don’t just touch at the knots; they also match in slope and curvature, producing a curve that looks and behaves as one continuous, smooth line.

This matters because fitting a single high-degree polynomial through many data points tends to produce wild oscillations, especially near the edges. A spline avoids this by keeping each piece simple (low degree) while enforcing smoothness where the pieces connect. The result is a curve that passes through every data point without the erratic swings.

Spline Interpolation vs. Linear Interpolation

The simplest way to connect data points is with straight lines, segment by segment. This is linear interpolation, and it works, but it creates sharp corners at every data point. The slope changes abruptly at each junction, which means the first derivative is not continuous. For many applications, from signal processing to economics, those artificial kinks distort the underlying trend.

Cubic spline interpolation solves both problems. Each segment is a smooth cubic polynomial rather than a straight line, and the segments are constrained so that slope and curvature match at every interior knot. The curve bends naturally through the data without sudden direction changes. This is why cubic splines are a standard tool in data science, engineering simulations, and any situation where you need a smooth path through a set of measured points.

Splines in Computer Graphics and 3D Modeling

In computer graphics, splines are the mathematical backbone of nearly every curve and surface you see on screen. Designers don’t draw freehand; they place control points, and the software generates a smooth curve that responds to those points. The two most important curve types in this space are Bézier curves and B-splines, and understanding the difference explains why modern design tools work the way they do.

A Bézier curve is the simpler of the two. It’s defined by a set of control points, and moving any single point changes the shape of the entire curve. That global effect makes Bézier curves harder to fine-tune when you’re modeling complex shapes, because adjusting one area can distort another. B-splines fix this by introducing local control: moving one control point only affects the curve in its immediate neighborhood, leaving the rest untouched. In practice, most design software chains together low-order polynomial segments, which is exactly what a B-spline does.

The most widely used variant in professional CAD software is the NURBS curve, which stands for Non-Uniform Rational B-Spline. NURBS are a generalization of B-splines that can precisely represent both freeform organic shapes and exact geometric forms like circles and ellipses. They’re the standard in industries where surface accuracy is critical. Aircraft fuselages, car body panels, ship hulls, shoe lasts, and bottle shapes are all typically modeled as NURBS surfaces. Manufacturers scan a cloud of 3D data points from a physical object, and NURBS surfaces are fitted to that data to create a digital model accurate enough for machining.

Mechanical Splines on Shafts and Gears

In mechanical engineering, a spline is something you can hold in your hand. It’s a series of ridges (teeth) cut along a shaft that mesh with matching grooves inside a hub, gear, or coupling. The purpose is torque transmission: the interlocking teeth create a secure mechanical connection that transfers rotational force without slippage. You’ll find spline shafts in automotive drivetrains, heavy machinery, and aerospace systems.

Types of Mechanical Splines

  • Involute splines have curved teeth based on the same involute profile used in gears. They self-center under load, distribute force evenly across the teeth, and handle high torque. Their standardized profiles make replacement straightforward, which is why they’re the most common type in demanding applications.
  • Straight-sided splines have parallel teeth with a constant width. They’re simpler and cheaper to manufacture and inspect, making them a practical choice for moderate-torque applications where extreme precision isn’t required.
  • Serrated splines feature V-shaped teeth, typically angled at 45° or 60°. These are smaller and shallower than the other types and are designed more for alignment and positioning than for heavy torque. They wear faster under repeated load cycles and aren’t suited to high-force applications.

How Mechanical Splines Are Made

The most traditional method is broaching, where a long cutting tool with progressively deeper teeth is pushed or pulled through a pre-drilled hole to cut internal splines in a single pass. This requires dedicated hydraulic machines and custom multi-tooth broach tools, which makes it fast for high-volume production but expensive to set up.

CNC spline broaching takes a different approach. Instead of a multi-tooth tool, a single carbide insert is programmed for multiple passes, removing material incrementally. This is more flexible for small batches or custom dimensions because changing the spline profile is a software adjustment rather than a new tool. External splines on shafts are also commonly produced by hobbing (a gear-cutting process) or cold rolling, which displaces metal rather than cutting it, producing a stronger surface finish.

Why One Word Covers All Three

The connection is historical. Before computers, engineers and shipbuilders used thin, flexible strips of wood or metal, called splines, to draw smooth curves through a set of fixed points (called ducks or weights). The strip would bend naturally into a minimum-energy curve. When mathematicians formalized this idea in the mid-20th century, they kept the name. The mechanical meaning is older and unrelated, referring to the key-like ridges on shafts, but the word stuck in both domains. Computer graphics inherited the mathematical definition directly, extending flat curves into the 3D surfaces used in modern design.