Level surfaces in this visualization
A function gives a number at every point of space. The points where it takes one value form a level set; near any of its points where it is a surface, the level surface . It is the three-dimensional version of the lines on a contour map. A surface given by an equation like this is called implicit: the equation tells you whether a point is on the surface but does not hand you its points. A parametric surface is the other way round.
Turning c
Most of the time a small change in moves the surface a little. For , the cross-section at is : the waist shrinks as falls to 0, and for the surface cannot cross that plane at all, so it comes apart into two sheets. The torus’s hole closes at . Near a point where is continuously differentiable and , the level set is a smooth piece of surface (the implicit function theorem), and nearby values of give nearby pieces. At the tip of the double cone the gradient is ; where the torus’s hole closes, on the z-axis, the used here has no gradient at all.
Why the gradient is perpendicular
Take any curve that stays on the surface. Along it does not change, so its derivative is 0, and by the chain rule . The gradient is perpendicular to the velocity of every curve through the point, so it is perpendicular to the surface. Where , that gives the tangent plane at directly: . For the sphere , points straight out from the centre.
How a computer draws it
There is no list of points to plot, so the computer samples on a grid of small cubes. Wherever changes sign along an edge, the surface crosses that edge; estimating where, and joining those points with triangles, gives a surface made of flat pieces. A finer grid gives more and smaller triangles. Thickening the surface to turns it into a wall. Here is measured in values of , so the wall is about across and thinner where changes fast. 3D printers fill solid parts with such walls, and the gyroid is a favourite. The formula used here is a sum of sines and cosines; its zero level set closely approximates the true gyroid, but is not the minimal surface itself.
Things to notice
- The graph of is the level surface , but a whole sphere or torus cannot be written as one single-valued .
- A level set can be empty () or a single point ().
Controls
- Drag P over the surface; drag anywhere else to turn the view. Arrow keys move P round the z-axis and change c.
- The grid knob sets how many cubes each side of the box is cut into; turning it shows the triangles.