Chapter 3 · 12 hours
Mathematical Representation of Curves
Practice questions
Practice questions and answers
10 exam-style questions on this chapter, written for this site from the official syllabus. We haven’t found past IOE papers for this subject yet; if you have some, share them in the community.
- Practice · 6 marks
A line segment joins P1(1, 2, 3) and P2(5, -2, 9). (a) Write its parametric equation. (b) Find its length and direction cosines. (c) Find the point at u = 0.25. (d) Find the point where the line meets the plane z = 6.
Answer
(a) Parametric equation
, so
(b) Length and direction cosines
Check: .
(c) Point at u = 0.25
Point .
(d) Intersection with z = 6
, which lies in , so the segment does cut the plane.
Answer: L = 8.246; direction cosines (0.485, -0.485, 0.728); P(0.25) = (2, 1, 4.5); intersection with z = 6 at (3, 0, 6).
- Practice · 6 marks
Write the parametric equations of (a) a circle of centre (2, 3) and radius 5, and (b) an ellipse of centre (1, 2) with semi-major axis 6 along X and semi-minor axis 3. Calculate points on the circle at 0, 60, 120 and 180 degrees, the tangent direction at 60 degrees, and the points of the ellipse at 0, 45 and 90 degrees.
Answer
(a) Circle
With , : , .
| 0 deg | 7.000 | 3.000 |
| 60 deg | 4.500 | 7.330 |
| 120 deg | -0.500 | 7.330 |
| 180 deg | -3.000 | 3.000 |
Tangent: . At : . Its length is 5, and it is perpendicular to the radius vector since the dot product is .
(b) Ellipse
With , , centre : , .
| 0 deg | 7.000 | 2.000 |
| 45 deg | 5.243 | 4.121 |
| 90 deg | 1.000 | 5.000 |
Check at 45 deg: .
The circle is the special case . Note that here is a parameter (eccentric angle), not the polar angle of the point of the ellipse.
Answer: circle points (7, 3), (4.5, 7.33), (-0.5, 7.33), (-3, 3); tangent at 60 deg = (-4.33, 2.5); ellipse points (7, 2), (5.243, 4.121), (1, 5).
- Practice · 6 marks
Write the standard parametric equations of a parabola and a hyperbola. For the parabola y^2 = 12x, calculate the points for t = 0, 0.5, 1 and 2 and the slope of the tangent at t = 1. For the hyperbola x^2/9 - y^2/16 = 1, calculate points for theta = 0, 30 and 45 degrees.
Answer
Conic sections (circle, ellipse, parabola, hyperbola) are the analytic curves used in CAD. Their parametric forms with centre or vertex at the origin are:
- Parabola : , , .
- Hyperbola : , (or , ).
Parabola
, so , .
| 0 | 0 | 0 |
| 0.5 | 0.75 | 3 |
| 1 | 3 | 6 |
| 2 | 12 | 12 |
Check at : .
Tangent slope: . At the slope is 1 (45 deg).
Hyperbola with ,
, .
| 0 deg | 3.000 | 0.000 |
| 30 deg | 3.464 | 2.309 |
| 45 deg | 4.243 | 4.000 |
Check at 45 deg: . The parameter must stay away from , where is infinite; this gives only the right branch.
Answer: parabola points (0,0), (0.75,3), (3,6), (12,12), slope at t = 1 is 1; hyperbola points (3,0), (3.464,2.309), (4.243,4.0).
- Practice · 8 marks
Derive the equation of a Hermite cubic curve in terms of its end points and end tangent vectors. Obtain the blending functions and write the equation in matrix form. State the properties of the curve.
Answer
A Hermite cubic segment is defined by two end points and two end tangent vectors .
Derivation
A cubic parametric curve is
with tangent
Apply the four boundary conditions:
Solving:
Substituting and collecting terms in :
Blending (Hermite) functions
Matrix form
Properties
- Passes through both end points (interpolates).
- Tangent direction and magnitude at the ends are controlled; a larger tangent magnitude makes the curve stay longer in that direction.
- for every .
- Two segments are joined with continuity by taking the same tangent at the common point.
- Local control: changing one segment does not change the others.
- Drawback: tangent vectors are not intuitive to the designer, which led to the Bezier form.
- Practice · 8 marks
A Hermite cubic curve has end points P0 = (0, 0) and P1 = (4, 2), and end tangent vectors P0' = (4, 4) and P1' = (4, -4). Find the coordinates of the curve and its tangent vector at u = 0.25, 0.5 and 0.75. Verify the end conditions.
Answer
Formulae
with , , , . The tangent uses the derivatives , , , .
Since :
At u = 0.5
, , .
At u = 0.25
; ; .
At u = 0.75
; ; .
Tangent vectors
Using :
| 0 | 0 | 0 | 4 | 4 |
| 0.25 | 1.000 | 1.0625 | 4.00 | 4.25 |
| 0.50 | 2.000 | 2.000 | 4.00 | 3.00 |
| 0.75 | 3.000 | 2.4375 | 4.00 | 0.25 |
| 1 | 4 | 2 | 4 | -4 |
Example at : , , , so and .
End conditions
At : , others 0, so and . At : , so and . Both are satisfied.
Answer: P(0.25) = (1.00, 1.0625), P(0.5) = (2.00, 2.00), P(0.75) = (3.00, 2.4375); tangents (4, 4.25), (4, 3), (4, 0.25).
- Practice · 6 marks
Define a Bezier curve. Write the general equation with Bernstein basis functions and explain the main properties of Bezier curves. What are the limitations of Bezier curves?
Answer
A Bezier curve is a parametric curve defined by a set of control points forming a control polygon. The curve approximates the polygon: it starts at the first and ends at the last control point, and is pulled towards the other points. It was developed by Pierre Bezier at Renault.
Equation
For control points (degree ):
with the Bernstein basis
For a cubic (): , , , .
Properties
- The curve is of degree one less than the number of control points.
- It passes through the first and last control points: , .
- End tangents lie along the first and last polygon sides: , .
- Convex hull property: the curve lies inside the convex hull of its control points, because the basis functions are non-negative and sum to 1.
- Variation diminishing: the curve does not cross any straight line more times than the control polygon does.
- Symmetry: reversing the order of the points gives the same curve.
- Invariant under affine transformation: transform the control points and redraw.
- Global control: moving one control point changes the whole curve.
Limitations
- Degree rises with the number of points, so many points give a high-degree, costly curve.
- No local control.
- Cannot represent exact conics such as a circle (rational Bezier is required).
- Joining segments with continuity needs the three points around the joint to be collinear.
- Practice · 6 marks
A cubic Bezier curve has control points B0 = (0, 0), B1 = (1, 3), B2 = (4, 4) and B3 = (5, 0). Calculate the points on the curve at u = 0.25 and u = 0.5 and the tangent vectors at the two ends. Verify the u = 0.5 point by the de Casteljau method.
Answer
Equation
At u = 0.5
Weights: .
At u = 0.25
Weights: ; ; ; .
End tangents
De Casteljau check at u = 0.5
Repeated mid-points:
| Level | Points |
|---|---|
| 0 | (0,0), (1,3), (4,4), (5,0) |
| 1 | (0.5,1.5), (2.5,3.5), (4.5,2) |
| 2 | (1.5,2.5), (3.5,2.75) |
| 3 | (2.5, 2.625) |
The result equals the formula value.
Answer: P(0.25) = (1.0625, 1.828); P(0.5) = (2.5, 2.625); P'(0) = (3, 9); P'(1) = (3, -12).
- Practice · 5 marks
What is a B-spline curve? Differentiate between a B-spline curve and a Bezier curve. Explain the terms control points, knot vector, degree and order, and state the advantages of B-splines.
Answer
A B-spline curve is a piecewise polynomial parametric curve defined by control points and B-spline basis functions. It is a generalisation of the Bezier curve and removes its two main weaknesses: global control and the link between the number of points and the degree.
Equation
are basis functions of order (degree ) given by the Cox-de Boor recursion over the knot vector .
Terms
- Control points : vertices of the control polygon; the curve is attracted to them but usually does not pass through them.
- Knot vector: non-decreasing parameter values where the polynomial pieces join. Number of knots for points. Uniform, open-uniform (end knots repeated times) and non-uniform vectors are used.
- Degree: polynomial degree of each segment (cubic is common); order degree .
Difference
| Point | Bezier | B-spline |
|---|---|---|
| Degree | = points (fixed) | Chosen independently () |
| Control | Global | Local |
| Segments | One polynomial | Many joined polynomials |
| Continuity | Needs extra conditions to join | automatic |
| Passes through end points | Always | Only for open knot vector |
| Extra parameter | None | Knot vector |
| Computation | Simple | Higher |
| Special case | Bezier is a B-spline with and no interior knots |
Advantages
- Local control: moving one point changes only segments.
- Degree stays low (cubic) for any number of points.
- High continuity ( for cubic) at joints.
- Convex hull and variation diminishing properties.
- NURBS (rational B-splines) can represent exact conics and free-form curves in one form.
- Practice · 8 marks
A uniform cubic B-spline segment is defined by four control points P0 = (1, 1), P1 = (2, 4), P2 = (5, 5) and P3 = (7, 2). Write the matrix form and calculate the points on the segment at u = 0, 0.5 and 1. Also find the tangent at u = 0 and u = 1.
Answer
Matrix form
For one uniform cubic segment ():
This is equivalent to the blending functions
Weights
| Sum | |||||
|---|---|---|---|---|---|
| 0 | 1/6 | 4/6 | 1/6 | 0 | 1 |
| 0.5 | 0.0208 | 0.4792 | 0.4792 | 0.0208 | 1 |
| 1 | 0 | 1/6 | 4/6 | 1/6 | 1 |
Points
At :
At :
At :
Tangents
The curve does not touch the control points; it starts at , a weighted average of .
Answer: P(0) = (2.333, 3.667); P(0.5) = (3.521, 4.375); P(1) = (4.833, 4.333); tangents (2, 2) at u = 0 and (2.5, -1) at u = 1.
- Practice · 6 marks
A Hermite cubic has P0 = (0, 0), P1 = (6, 0), P0' = (3, 6) and P1' = (3, -6). Derive the relation between Hermite and cubic Bezier data and find the Bezier control points. Hence calculate the curve point at u = 0.5 and u = 0.25.
Answer
Relation between the forms
A cubic Bezier curve with control points has end points , and end tangents
If this curve is to equal the Hermite curve, the end conditions must be identical:
Both are cubics with the same four end conditions, so they are the same curve.
Control points
Point at u = 0.5
Weights :
Point at u = 0.25
Weights :
Answer: Bezier control points (0,0), (1,2), (5,2), (6,0); P(0.5) = (3.0, 1.5); P(0.25) = (1.219, 1.125).
Written from the official syllabus. Questions and answers are written for this site; check them against your class notes.
Chapter titles and hours from the IOE syllabus ↗