Computer Graphics · 3D Representation and Viewing
Polygon Quadric Surfaces and Splines
Overview
Three-dimensional objects in computer graphics are either modelled (given a mathematical description) or approximated (built from simple pieces).
This lesson covers the two standard modelling families used in the syllabus: polygon surfaces and quadric surfaces for solid/analytic shapes, and spline curves (Bézier and B-spline) for free-form shapes such as car bodies, fonts and camera paths.
It sits inside the 3D Representation and Viewing area, immediately after 3D transformations and before visible-surface methods.
You should already be comfortable with parametric representation of a line and with vector arithmetic (dot and cross products), because every curve and every face normal in this lesson is written in vector form.
Key concepts
- Polygon surface (polygon mesh): a 3D object represented as a collection of flat polygon faces; each face is a closed sequence of edges, and each edge joins two vertices. Faces supply the visible boundary and the surface normal needed for shading.
- Polygon tables (three-table mesh): the vertex table stores the coordinates of each vertex; the edge table stores, for each edge, pointers (indices) to its two end vertices; the face table stores pointers to the edges (or vertices) bounding each face.
Tables remove duplicate coordinate data and make traversal fast. - Face normal: for a planar face with vertices taken counter-clockwise when viewed from outside, , normalized. Orientation (winding order) decides which side is "front".
- Quadric surface: any surface whose implicit equation is of second degree in : .
Standard quadrics: sphere, ellipsoid, elliptic cone, elliptic cylinder, elliptic paraboloid, hyperbolic paraboloid, hyperboloid of one sheet, hyperboloid of two sheets. Quadrics are smooth and compact to store; a sphere cannot be represented exactly by any finite planar polygon mesh — it can only be approximated. - Explicit / implicit / parametric forms: a quadric is usually stored implicitly (quadratic equation) and rendered by subdividing it into a polygon mesh.
- Bézier curve: a polynomial curve defined by control points ; it approximates the control polygon (it does not pass through interior control points) but interpolates and .
- Bernstein basis: the blending functions of a Bézier curve are , all non-negative and summing to 1 on .
- Degree rule: control points give degree (4 control points → cubic, 5 → quartic). The degree is not independent of the number of control points for a Bézier curve.
- Convex-hull property: the entire Bézier curve lies inside the convex hull of its control points; it can never leave that hull.
- Endpoint tangent property: and ; the curve is tangent to the first and last edges of the control polygon.
- de Casteljau algorithm: a numerically stable recursive linear interpolation procedure that evaluates and subdivides a Bézier curve.
- B-spline curve: a piecewise polynomial curve of degree defined by control points and a knot vector; unlike Bézier, the degree is chosen independently of the number of control points, and local control holds — moving one control point changes only a local part of the curve.
- Continuity at knots: at an interior knot of multiplicity , a B-spline of degree is continuous. Simple knot (): ; multiplicity : (only positional); multiplicity : the curve breaks apart there.
- Rational Bézier / NURBS: assigning a weight to each control point gives a rational curve, which can represent a circle exactly (a polynomial Bézier cannot).
- Beta-spline: a B-spline variant with extra shape parameters bias and tension; the plain B-spline is the special case bias , tension .
How it works
A. Building a polygon mesh
- Collect all distinct vertices; list their coordinates once in the vertex table.
- For every face, record the ordered list of its vertices (or edges). Store the ordering consistently, e.g. counter-clockwise seen from outside, so that the cross-product normal always points outward.
- Build the edge table by listing each undirected vertex pair once and pointing back into the vertex table.
- During rendering, each face's normal is computed once and reused for lighting; back faces are back-face culled using that normal.
B. Modelling with quadrics
- Store the shape implicitly (a few coefficients) plus its position and orientation.
- When display is needed, tessellate (subdivide) it into a polygon mesh — a sphere becomes a latitude–longitude grid of quads.
- Continuity of the normals across the tessellation improves as the subdivision is refined; the polygonal surface is only an approximation.
C. Evaluating a Bézier curve
- Write with .
- Substitute the four Bernstein weights for a cubic: (they sum to 1).
- Evaluate each coordinate separately with those scalar weights.
- Alternatively, use de Casteljau: repeatedly take points at fraction along each control-polygon edge, halving the number of points each level until a single point remains — this is the curve point, and the intermediate points are the control points of the two split pieces.
D. Understanding knot multiplicity in B-splines
- Choose degree and a non-decreasing knot vector; the number of knots equals (number of control points) .
- On each span between successive knots, only control points influence the curve.
- Repeating a knot reduces the smoothness there: multiplicity gives .
- Repeating it times forces the curve to pass through the corresponding control point and splits the curve.
Drawing the diagram…
Formulas
- Bézier curve: ( control points, degree, control points).
- Bernstein basis: ; and on .
- Quadratic Bézier: .
- Cubic Bézier: .
- Endpoint tangents: , .
- Quadratic derivative: .
- Cubic derivative: .
- de Casteljau step: .
- B-spline curve: , degree , knots , with .
- Cox–de Boor recursion: if else ; .
- Continuity at a knot of multiplicity for degree : .
- Rational Bézier: .
- Quadrics: sphere ; ellipsoid ; hyperboloid of one sheet ; hyperboloid of two sheets ; elliptic cone ; elliptic paraboloid ; hyperbolic paraboloid ; elliptic cylinder .
Worked examples
Example 1 (direct). A Bézier curve has five control points. Degree?
Degree . Answer: quartic, degree 4.
Example 2 (numeric). Cubic Bézier with , , , . Find the -coordinate at .
Weights at : , , , .
. Answer: .
Example 3 (numeric, two-step). Same curve. Find the slope of the tangent at .
Tangent . Slope . The tangent at points along , i.e. in the direction , which has the same slope . Answer: slope .
Example 4 (hard, de Casteljau). Cubic Bézier , , , . Evaluate at and give the two split curves.
Level 1: , , .
Level 2: , .
Level 3: .
Left piece control points: ; right piece: . Answer: curve point .
Example 5 (statement/match type). Assertion: in a cubic B-spline, repeating an interior knot three times makes the curve only positionally continuous there. True or false?
For degree , multiplicity gives continuity — the curve is continuous in position only, and its tangent and curvature jump. Answer: true. (Had multiplicity been 1, continuity would be , the usual smoothness of a uniform cubic B-spline; multiplicity 4 would break the curve.)
Example 6 (numeric, quadratic extremum). Quadratic Bézier , , . Where is maximum?
; , . Answer: , maximum . Note the curve is a parabola, hence the single extremum.
Comparison
| Aspect | Bézier curve | B-spline curve |
|---|---|---|
| Basis | Bernstein polynomials (global) | Cox–de Boor basis (local) |
| Degree | fixed by control-point count, points → degree | chosen independently of control-point count |
| Interpolation | passes through and only | passes through endpoints only with repeated (clamped) knots |
| Effect of moving one control point | whole curve changes | only a local portion changes |
| Convex hull | inside hull of all control points | inside the hull of local control points |
| Continuity | infinite inside the interval | at a knot of multiplicity |
| Exact circle | not possible with polynomial form | not possible without rational form |
| Surface | Standard equation | Shape cue |
|---|---|---|
| Sphere | all sections are circles | |
| Ellipsoid | three semi-axes | |
| Hyperboloid, one sheet | connected saddle-like tube | |
| Hyperboloid, two sheets | two separate bowls | |
| Elliptic cone | double cone | |
| Elliptic paraboloid | cup opening upward | |
| Hyperbolic paraboloid | saddle with straight rulings | |
| Elliptic cylinder | no term |
| Term | Meaning |
|---|---|
| Interpolation | curve passes through the given points (Hermite, natural spline) |
| Approximation | curve is pulled towards but need not pass through the points (Bézier, B-spline) |
Revision summary
- control points → Bézier degree ; 4 points is always the cubic case.
- Bézier touches only the first and last control points, and is tangent to the first and last control-polygon edges.
- Bézier stays inside the convex hull — a statement that it can go outside is always wrong.
- Tangent at start ; at end ; do not forget the factor .
- de Casteljau = repeated linear interpolation at fraction ; it evaluates and subdivides.
- B-spline degree is set by you, not by the number of control points — that is the biggest exam difference from Bézier.
- B-spline knot multiplicity : continuity ; cubic with simple knot is , with triple knot only .
- A finite polygon mesh can never represent a sphere exactly; quadrics store smoothly and are tessellated for display.
- Quadric second-degree implicit equation; the sign pattern of the three squared terms decides which quadric it is.
- Rational (weighted) Bézier/NURBS can draw a circle exactly; pure polynomial Bézier cannot.
- Beta-splines use bias and tension; Bézier and B-spline are the tools of painting, drawing and CAD systems.
Previous-year exam insights
- Direct concept questions ask the degree from the control-point count, the degree of a Bézier formed from four points, or the basis-polynomial expression — memorise .
- Statement I / Statement II pairs typically oppose "Bézier interpolates all control points" (false) with a true numerical fact such as "a cubic Bézier has four control points"; check each half separately, never jointly.
- Which statements are correct items often mix interpolation/approximation labels: Hermite interpolates, Bézier and B-spline approximate, and "degree independent of control points" is true only for B-splines.
- Numerical Bézier questions give four control points and ask for a point at , a slope, or an extremum; compute the four weights first, they must sum to 1.
- Convex-hull and outside-the-hull options are the commonest trap; the correct answer is always that the curve remains inside.
- Match List-I with List-II pairs curve/surface names with their properties (Bézier ↔ painting/drawing/CAD, B-spline ↔ bias and tension / knot continuity, quadric ↔ second-degree equation).
- Knot multiplicity and continuity appear as assertion–reason or single-statement items; apply mechanically.
- Watch the wording "degree" versus "order": order in many textbooks, so a cubic Bézier is degree 3 but order 4 — read which one is asked.
Practice at PARIKSHA
You are ready for the PARIKSHA tests of this sub-topic when you can:
- State the degree of a Bézier curve for any number of control points and write the Bernstein basis formula from memory.
- Evaluate a cubic Bézier at and at a symbolic , and verify the weights sum to 1.
- Compute the tangent vector and slope at both endpoints of a cubic Bézier.
- Derive the maximum of a quadratic Bézier analytically by differentiating.
- Run de Casteljau for one or two levels and produce the control points of both split pieces.
- Decide whether a given statement about interpolation, approximation or the convex hull is true.
- Identify each standard quadric from its implicit equation and name its shape.
- Explain the vertex/edge/face tables of a polygon mesh and how a face normal is computed.
- Apply the continuity rule for any degree and knot multiplicity, including break-apart at multiplicity .
- Distinguish Bézier from B-spline on degree, local control, hull and endpoint interpolation.
Attempt the sub-topic test first, then the full subject test.