6 Curves And Parametric Representations

Computer Graphics · Unit 6

Curves and Parametric Representations

Exam-focused notes for Curves and Parametric Representations (Computer Graphics, BIT304): what the TU syllabus asks and how it has actually been tested, with 5 solved past questions from this unit.

Curves and Parametric Representations in short

Curves in graphics are drawn from a few control values instead of thousands of points. Parametric curves such as Hermite and Bezier curves are used in fonts, design tools and animation paths.

Curves and Parametric Representations: notes

Parametric curves and properties

In a parametric curve, each coordinate is a separate function of a parameter $t$, usually in the range $0 \le t \le 1$:

$$x = x(t), \qquad y = y(t), \qquad z = z(t)$$

This is better than $y = f(x)$ because it can describe curves that loop, close on themselves, or go vertical. A circle is $x = r\cos t$, $y = r\sin t$.

Properties that matter:

  • Control points: the curve is shaped by a few points chosen by the user.
  • Continuity: $C^0$ means the pieces meet at a point. $C^1$ means the tangent direction and size also match. $C^2$ means the curvature also matches.
  • Local control: moving one control point changes only a small part of the curve.
  • Smoothness: the curve has no sudden jumps.
  • Interpolation vs approximation: an interpolating curve passes through the control points. An approximating curve is only pulled by them.

Hermite interpolation and curves

A Hermite curve is a cubic curve fixed by its two end points and the tangent (direction and speed) at each end. Given $P_0$, $P_1$ and tangents $R_0$, $R_1$:

$$P(t) = a t^3 + b t^2 + c t + d$$

The four conditions are $P(0) = P_0$, $P(1) = P_1$, $P'(0) = R_0$ and $P'(1) = R_1$. Solving for the coefficients gives

$$P(t) = (2t^3 - 3t^2 + 1)P_0 + (-2t^3 + 3t^2)P_1 + (t^3 - 2t^2 + t)R_0 + (t^3 - t^2)R_1$$

In matrix form $P(t) = T \cdot M_H \cdot G_H$ with $T = [t^3; t^2; t; 1]$:

$$M_H = \begin{bmatrix} 2 & -2 & 1 & 1 \ -3 & 3 & -2 & -1 \ 0 & 0 & 1 & 0 \ 1 & 0 & 0 & 0 \end{bmatrix}, \qquad G_H = \begin{bmatrix} P_0 \ P_1 \ R_0 \ R_1 \end{bmatrix}$$

Example: $P_0 = (0,0)$, $P_1 = (4,0)$, $R_0 = (3,6)$, $R_1 = (3,-6)$. At $t = 0.5$ the blending weights are $0.5$, $0.5$, $0.125$ and $-0.125$:

$$\begin{aligned} x &= 0.5(0) + 0.5(4) + 0.125(3) - 0.125(3) = 2 \ y &= 0.5(0) + 0.5(0) + 0.125(6) - 0.125(-6) = 1.5 \end{aligned}$$

The point is $(2, 1.5)$. Longer tangents make the curve bulge more in that direction. Hermite curves pass through both end points, and joining two of them with the same tangent gives a smooth ($C^1$) curve.

What this unit covers

  • Parametric curves and properties
  • Hermite interpolation and curves
  • Bezier curves and properties
  • Bezier curve equations and derivations
  • Parametric cubic curves
  • Curve modeling and animation

Bezier curves and properties

2082 · 10 marks

Describe the concept of Bezier curves in 3D modeling. Derive the equation for a Bezier curve and discuss how it is used in curve modeling and animation.[10]

Show solved answer

Bezier Curves in 3D Modeling

Concept of Bezier Curves

A Bezier curve is a parametric curve defined by a set of control points that influence the shape of the curve without necessarily lying on it. The curve is smooth and continuous, making it ideal for modeling complex shapes in 3D graphics, CAD systems, and animation.

Key characteristics:

  • The curve always passes through the first and last control points (endpoints)
  • Intermediate control points act as "attractors" that pull the curve toward them
  • The curve lies within the convex hull of its control points
  • Smooth and infinitely differentiable
  • Affine invariant (transformation properties are preserved)

Derivation of Bezier Curve Equation

For n+1 Control Points (P₀, P₁, ..., Pₙ)

The parametric equation of a Bezier curve is:

$$B(t) = \sum_{i=0}^{n} P_i \cdot B_{i,n}(t), \quad t \in [0,1]$$

where B_{i,n}(t) are the Bernstein basis functions:

$$B_{i,n}(t) = \binom{n}{i} t^i (1-t)^{n-i}$$

Cubic Bezier Curve (Most Common - 4 Control Points)

For control points P₀, P₁, P₂, P₃:

$$B(t) = (1-t)^3 P_0 + 3(1-t)^2 t P_1 + 3(1-t)t^2 P_2 + t^3 P_3$$

Expanding the Bernstein basis functions:

  • $B_{0,3}(t) = (1-t)^3$
  • $B_{1,3}(t) = 3t(1-t)^2$
  • $B_{2,3}(t) = 3t^2(1-t)$
  • $B_{3,3}(t) = t^3$

Verification: At t=0: B(0) = P₀ (curve starts at first control point) At t=1: B(1) = P₃ (curve ends at last control point)


Applications in Curve Modeling and Animation

1. Curve Modeling

  • Shape Design: Designers adjust control points to create desired curves without manually specifying every point on the curve
  • Smooth Interpolation: Provides smooth, continuous curves for modeling surfaces, paths, and contours
  • Intuitive Control: Control points provide direct, visual feedback for shape manipulation

2. Animation

  • Path Definition: Bezier curves define smooth motion paths for objects and cameras
  • Keyframe Interpolation: Smooth transitions between keyframes in animation sequences
  • Ease-in/Ease-out: Control point positioning creates natural acceleration and deceleration effects
  • Spline Animation: Multiple Bezier curves connected smoothly (C¹ or C² continuity) create complex animation trajectories

3. Practical Examples

  • Font design (TrueType, PostScript fonts use Bezier curves)
  • Vector graphics (Adobe Illustrator, Inkscape)
  • 3D modeling software (Blender, Maya)
  • Motion graphics and visual effects
  • Robot path planning

Advantages

  1. Computationally efficient (De Casteljau's algorithm)
  2. Stable numerical properties
  3. Easy to subdivide and join
  4. Intuitive control through control points
  5. Scalable to any degree

Summary

Bezier curves provide a powerful mathematical framework for creating smooth, controllable curves in 3D space. Their parametric nature and basis function formulation make them ideal for both static modeling and dynamic animation applications, forming the foundation of modern computer graphics and design tools.

Open this answer on its own page →

2080 · 5 marks

Explain about parametric curve. Describe the properties of Bezier curve. [5]

A parametric curve is a curve defined by parametric equations where the coordinates (x, y) are expressed as functions of a parameter t: - x = f(t) - y = g(t) where t ranges over an interval [a, b]. Instead of expressing y explicitly as a function of x (y = f(x)), parametric representation uses an...

Open this answer on its own page →

2079 · 5 marks

What is Bezier curve? Describe its properties. [5]

Show solved answer

Bezier Curve: Definition and Properties

Definition

A Bezier curve is a parametric curve used in computer graphics and design to represent smooth curves. It is defined by a set of control points and is generated using the Bernstein polynomial basis functions. The curve passes through the first and last control points but is influenced by the intermediate control points, which act as "handles" to shape the curve.

A Bezier curve of degree n is mathematically defined as:

B(t) = Σ(i=0 to n) P_i * B_i,n(t), where 0 ≤ t ≤ 1

where:

  • P_i are the control points
  • B_i,n(t) are Bernstein basis functions: B_i,n(t) = C(n,i) * t^i * (1-t)^(n-i)
  • C(n,i) is the binomial coefficient

Properties of Bezier Curves

1. Passes Through End Points

The curve always passes through the first control point P_0 and the last control point P_n. Intermediate control points influence but do not necessarily lie on the curve.

2. Convex Hull Property

The entire curve lies within the convex hull formed by its control points. This ensures the curve remains bounded and predictable.

3. Continuity

Bezier curves are infinitely differentiable (smooth) everywhere along their length, providing C-infinity continuity.

4. Affine Invariance

The curve is invariant under affine transformations. Transforming the control points and then generating the curve produces the same result as generating the curve first and then transforming it.

5. Symmetry

Reversing the order of control points produces the same curve traversed in the opposite direction.

6. Variation Diminishing Property

The curve does not oscillate about any line more than the control polygon does, making it stable and predictable.

7. Scalability

Bezier curves can represent curves of any degree by adjusting the number of control points.


These properties make Bezier curves ideal for interactive design applications, font rendering, and animation in computer graphics.

Open this answer on its own page →

Parametric cubic curves

2081 · 5 marks

Explain about parametric cubic curve with its properties. [5]

A parametric cubic curve is a curve defined by cubic polynomial equations in parametric form: x(t) = a₀ + a₁t + a₂t² + a₃t³ y(t) = b₀ + b₁t + b₂t² + b₃t³ where t is a parameter (typically t ∈ [0,1]), and a₀, a₁, a₂, a₃, b₀, b₁, b₂, b₃ are coefficients that define the curve's shape. For 3D curves,...

Open this answer on its own page →

Hermite interpolation and curves

0 · 10 marks

Define Hermite interpolation in defining a curve. Draw a line with end points (2, 3) and (12, 8) using DDA.[10]

Definition: Hermite interpolation is a technique for defining a curve using both the endpoints (positions) and the tangent vectors (derivatives) at those endpoints. Unlike simple interpolation that uses only point positions, Hermite interpolation controls the slope of the curve at each end, produ...

Open this answer on its own page →