Can reshaping a surface change its total curvature?
The question
A flat box has 8 corners, each with angle defect π/2. Round it off, stretch it or pinch it: what happens to the total?
And what does the number of holes have to do with it?
- 1 SeeReshape surfaces with 0 to 3 handles.
- 2 TryCompare the inside and outside of a torus.
- 3 ProveAdd up the defects of every corner.
- 4 ApplyFive problems, from meshes to tori.
Before you start · 3 quick checks on Gaussian curvature, the Euler characteristic and the area of a sphere, about 3 min
Two ideas before you start
2 ideasOn a polyhedron, curvature sits at the corners
Figure: three squares laid flat around a corner, leaving a gap of a quarter turn. It needs JavaScript.
Angle defect: δ = 2π − 3 · π/2 = π/2
Lay the faces around a vertex flat. The angle left over, 2π minus the angles that meet there, is the angle defect δ: positive at a cube corner, 0 on a flat sheet, negative where the faces have to overlap.
Exact definition
Angle defect. A polyhedral surface is made of flat polygons glued along their edges. At a vertex \(v\), let \(\theta(v)\) be the sum of the angles, in radians, of the polygons that meet at \(v\). The angle defect at \(v\) is \(\delta(v) = 2\pi - \theta(v)\). A vertex inside a flat region has \(\theta(v) = 2\pi\) and \(\delta(v) = 0\).
Total curvature. For a closed polyhedral surface, the total curvature is the sum of the angle defects over all of its vertices. On a smooth surface the Gaussian curvature \(K = k_1 k_2\) of how a surface bends two ways at once can vary from point to point, and its total curvature is the integral \(\iint K\,dA\) over the surface.
Count the handles
Figure: the stage 1 slab seen from above, with no holes. It needs JavaScript.
g = 0: χ = 2 − 2g = 2 stage 1 mesh: V − E + F = 122 − 360 + 240 = 2
A handle is a tunnel through the surface, like the hole of a ring. Each one lowers the Euler characteristic χ = V − E + F by 2.
Exact definition
Closed surface. A surface is closed when it is compact, in one piece, and has no boundary: every point has a neighborhood shaped like a disk. It is orientable when it has two sides. Every closed surface embedded in space, sitting there without crossing or touching itself, is orientable: it has an inside and an outside.
Genus and Euler characteristic. Every closed orientable surface is homeomorphic to a sphere with \(g\) handles attached: the two can be matched point for point, continuously both ways, without tearing or gluing. The number \(g\) is its genus. Cut it into polygons with \(V\) vertices, \(E\) edges and \(F\) faces; then \(\chi = V - E + F\) does not depend on the cutting, as what a surface’s mesh remembers shows, and \(\chi = 2 - 2g\). That lesson computes the sphere (2) and the torus (0); for more handles this lesson uses the formula, checks it on its own meshes, and does not prove it.
Fine print: the surfaces in stage 1
Each surface in stage 1 is the outside of a slab of unit cubes, one cube thick: a 3 by 3 block with no holes, or a block 3 wide and \(2g + 1\) long with \(g\) square holes through it. Every unit square of the outside is cut into four squares of side \(\tfrac{1}{2}\), and each of those into two triangles along a diagonal. The surface is closed: it includes the bottom face and the walls of the holes.
Reshaping moves the vertices and keeps every triangle, so the counts \(V\), \(E\) and \(F\) never change. Rounding off moves each vertex toward the average of its neighbors; stretching widens the slab; pinching squeezes its middle.
Move the curvature around
- Answer the question first. The surfaces and sliders open after you answer.
- Pick a surface with 0, 1, 2 or 3 handles, then round it off, stretch its width or pinch its middle.
- The tiles add up the angle defects of every vertex, including those on the hidden bottom face.
The surfaces, the sliders and the goals open after you answer.
How the page computes the defects
For every triangle and each of its corners, the page takes the two edge vectors \(u\) and \(w\) leaving that corner and finds the angle \(\theta\) between them, the one with \(\cos\theta = \tfrac{u \cdot w}{|u|\,|w|}\). The defect of a vertex is \(2\pi\) minus the angles at it. The positive part adds the positive defects, the negative part the negative ones, and the total adds all of them; the tiles show them rounded to 3 decimals.
Rounding off blends each vertex between its starting place and its place after 10 smoothing steps, where every step moves each vertex halfway toward the average of its neighbors along the sides of the small squares. Stretching multiplies the width by the chosen factor. Pinching multiplies the width and the thickness by \(1 - p\,e^{-(x/0.8)^2}\), where \(x\) is the distance along the slab from its middle and \(p\) the chosen amount. No triangle collapses at any slider setting.
Inside and outside a torus
Now a smooth surface. Spin a circle of radius \(r\) around an axis at distance \(R\) from its center, with \(R \gt r \gt 0\). The circle sweeps out a torus. The outer half of the tube faces away from the axis, the inner half faces the hole, and the two equators are the circles farthest from and nearest to the axis. \(K\) is the Gaussian curvature \(k_1 k_2\).
The formulas, the explorer and its goals open after you answer both predictions.
A point of the torus is given by the angle \(u\) around the axis and the angle \(v\) around the tube, with \(v = 0\) on the outer equator:
\[\begin{aligned} x &= (R + r\cos v)\cos u, \\ y &= (R + r\cos v)\sin u, \\ z &= r\sin v. \end{aligned}\]Take the normal pointing toward the center of the tube. The principal directions run along the tube circle, which bends toward that center by \(\tfrac{1}{r}\), and along the circle around the axis, of radius \(R + r\cos v\), whose bend in the normal direction is \(\tfrac{\cos v}{R + r\cos v}\). So
\[\begin{aligned} K &= \frac{\cos v}{r(R + r\cos v)}, \\ dA &= r(R + r\cos v)\,du\,dv. \end{aligned}\]The outer half is \(-\tfrac{\pi}{2} \le v \le \tfrac{\pi}{2}\), where \(K \ge 0\); the inner half is the rest, where \(K \le 0\). The tiles integrate \(K\) and \(dA\) over each half with Simpson’s rule (1,000 steps in \(v\)) and round to 3 decimals; the curvature on each equator is shown exactly when it ends within 3 decimals.
Adding up the angle defects
Let a closed surface be made of finitely many flat triangles, each with three corners not on one line, glued edge to edge: two triangles share a whole edge, a single vertex, or nothing, and every edge lies in exactly two triangles. Let \(V\), \(E\) and \(F\) count the vertices, edges and triangles, and let \(\delta(v)\) be the angle defect at the vertex \(v\). Then
\[\begin{aligned} \sum_{v} \delta(v) &= 2\pi(V - E + F). \end{aligned}\]Write \(S\) for the sum of the angle defects and \(A\) for the sum of all the angles of all \(F\) triangles. Then choose each step of the proof.
Reshaping cannot change the total. Moving the vertices changes the angles but not \(V\), \(E\) or \(F\), as long as no triangle collapses. So the sum of the angle defects stays \(2\pi(V - E + F)\). The stage 1 meshes have \(V - E + F = 2\), 0, \(-2\) and \(-4\), so their totals are exactly \(4\pi\), 0, \(-4\pi\) and \(-8\pi\).
The smooth version: the Gauss–Bonnet theorem. For a smooth closed orientable surface with \(g\) handles,
\[\begin{aligned} \iint K\,dA &= 2\pi\chi \\ &= 2\pi(2 - 2g). \end{aligned}\]It is the smooth counterpart of the formula above: the curvature spread over a smooth surface adds up to the same total as the angle defects of any closed triangle mesh with the same number of handles. One proof cuts the surface into small triangles whose sides are geodesics, the curves that on a sphere are the great-circle arcs, and it is not given here. Stage 2 checked it on the torus, where \(g = 1\) and \(\iint K\,dA = 0\).
Where 2 − 2g comes from
A closed orientable surface with \(g \ge 1\) handles can be cut along \(2g\) loops through one point so that it opens up into a single polygon with \(4g\) sides. Gluing the sides back in pairs gives a cell decomposition with one vertex, \(2g\) edges and one face, so \(V - E + F = 1 - 2g + 1 = 2 - 2g\). For \(g = 0\), a sphere, the cube gives 2. Since \(\chi\) is the same for every decomposition, every triangulation of the surface has \(V - E + F = 2 - 2g\). That every closed orientable surface is a sphere with \(g\) handles is the classification of surfaces, a theorem this lesson does not prove.
Problems
Each problem has hints and a worked solution. Answer with one decimal number; where a tolerance is stated, answers within it are accepted, and otherwise the exact value is required.
Related: Why do shortest routes on a sphere follow great circles? introduces the geodesics that the proof of the smooth theorem uses.
Further reading
- M. P. do Carmo, Differential Geometry of Curves and Surfaces (Prentice Hall, 1976), section 4-5, “The Gauss-Bonnet Theorem and its Applications.”
- A. Pressley, Elementary Differential Geometry, 2nd ed. (Springer, 2010), chapter 13, “The Gauss–Bonnet Theorem.”