Past exam question: 2081 Chaitra (Regular), Q4
Open in the Padhaiko appDefine spline curve. Explain Hermite curve for 3-degree polynomial with required expression.
Solution
Definition of a Spline Curve: In computer graphics, a spline curve is a flexible, composite curve formed by joining piecewise polynomial segments of low degree (typically degree 3 / cubic polynomials) end-to-end, subject to specified continuity conditions across the joints (knots).
- Interpolating Spline: The curve passes directly through every specified control point.
- Approximating Spline: The curve is guided by control points without necessarily passing through interior points (e.g. B-spline, Bezier).
- Continuity Orders:
- : Positional continuity (segments share endpoint).
- : Slope continuity (first derivatives / tangent vectors match at joint).
- : Curvature continuity (second derivatives match at joint).
Using piecewise cubic segments prevents Runge's phenomenon (high-order polynomial wild oscillations) while providing smooth local control.
Hermite Curve Boundary Conditions: A cubic Hermite curve segment for is uniquely determined by four boundary conditions:
- Starting endpoint position:
- Ending endpoint position:
- Starting tangent vector:
- Ending tangent vector:
Derivation of the Hermite Parametric Equation: The general cubic polynomial in parameter is:
Its first derivative (tangent vector) with respect to is:
Evaluating at the boundary parameters and :
Writing these four linear equations in matrix form:
Hermite Blending Matrix and Basis Functions: Inverting the coefficient matrix gives the Hermite blending matrix :
Thus, the polynomial coefficients are . Substituting into :
The four Hermite blending functions are:
The final curve expression is:
Adjacent Hermite segments can be stitched together with continuity simply by equating the endpoint position and tangent vector of adjacent segments ( and ).
- A spline curve is a piecewise polynomial curve connected at knot points with defined continuity orders ().
- The cubic Hermite curve is defined by endpoints and tangent vectors as:
where the blending functions are , , , and .
All past exam questions for Computer Graphics and Visualization