🍩 Gaussian Curvature: Angle Defect, Principal Curvatures and Discrete Gauss-Bonnet
Pick a vertex on a torus, sphere, saddle, cylinder or cone and lay a fan of six neighbours around it. The missing angle at the vertex, the angle defect, measures the Gaussian curvature there: a gap for positive curvature, an overlap for negative. Compare it with K = k1 k2 from the principal curvatures, see why a cylinder and a cone are flat, and check that the defects of a closed mesh always add up to 2 pi times the Euler characteristic. A Blender-built plinth with numerical checks.
〰️ What It Demonstrates
Gaussian curvature K measures how a surface bends at each point by multiplying its two principal curvatures (the maximum and minimum bending in perpendicular directions). A sphere bends the same way in every direction, giving constant positive curvature K = 1/R². A saddle bends oppositely along its two axes — up one way, down the other — giving negative curvature. A flat plane and, surprisingly, a cylinder both have K = 0: the cylinder curves strongly in one direction but not at all along its length, and since K multiplies the two principal curvatures, one being zero makes the product zero even though the surface clearly looks "curved" to the eye.
That cylinder example reveals the deep distinction between intrinsic and extrinsic curvature. Gaussian curvature is intrinsic — a two-dimensional being living on the surface could measure it purely by measuring distances and angles within the surface, without any notion of the 3D space it sits in. This is exactly why you can roll a flat sheet of paper into a cylinder without stretching it (both have K = 0) but can never flatten a sphere without tearing or distorting it (K ≠ 0 for a sphere, K = 0 for a plane — they are intrinsically different).
How to Use
- Select a Surface: sphere, plane, saddle, cylinder or torus.
- Drag the canvas to rotate, or enable Auto-rotate with adjustable Speed.
- Increase Resolution for a finer mesh.
- For the torus, move the r/R ratio slider and watch the blue (negative curvature) region on the inner rim grow or shrink relative to the red (positive curvature) outer rim.
- Read the live K min / K max range for the current surface and mesh.
Did You Know?
Carl Friedrich Gauss called his 1827 discovery that curvature is intrinsic the Theorema Egregium — Latin for "remarkable theorem" — because it was genuinely surprising that a purely local, distance-based quantity could be so fundamental. It explains why every flat map of the round Earth must distort something (area, angle or distance), since a sphere's surface cannot be mapped to a plane without changing intrinsic measurements. The same idea explains why a slice of pizza held flat flops downward: folding it slightly forces a nonzero curvature along the fold, which, to keep the total Gaussian curvature consistent, flattens out (stiffens) the curvature running the length of the slice, holding it rigid.
Pick a vertex on a torus, sphere, saddle, cylinder or cone and lay a fan of six neighbours around it. The missing angle at the vertex, the angle defect, measures the Gaussian curvature there: a gap for positive curvature, an overlap for negative. Compare it with K = k1 k2 from the principal curvatures, see why a cylinder and a cone are flat, and check that the defects of a closed mesh always add up to 2 pi times the Euler characteristic. A Blender-built plinth with numerical checks.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install