A formula that generates every point
A parametric surface is a map from a flat 2D parameter domain (u, v) to 3D space: S(u, v) = (x(u,v), y(u,v), z(u,v)). Instead of solving an implicit equation like x² + y² + z² = r² — which only tells you whether a point sits on the surface — a parametric surface hands you a formula that generates every point directly as (u, v) sweep across a rectangle, exactly the shape a GPU wants: a regular grid of vertices connected into faces. This simulator samples that grid, rotates it, and projects it to the screen with a painter's-algorithm depth sort.
Sphere and torus: the orientable baseline
The unit sphere, in spherical coordinates θ (longitude) and φ (colatitude), is genus 0 — no holes — closed, and orientable: a consistent outward normal exists everywhere. The torus, formed by sweeping a small tube circle of radius r around a big ring of radius R, is genus 1 and still orientable — topologically the same as a coffee mug or an inner tube, any shape reachable by continuous deformation without cutting or gluing.
Torus, R = 1.0, r = 0.4: x = (R + r·cos v)·cos u y = (R + r·cos v)·sin u z = r·sin v u, v ∈ [0, 2π)
The Möbius strip: only one side
Give a strip a half-twist before joining its ends and it becomes non-orientable: there is no consistent way to choose an outward normal across the whole surface — follow a normal vector all the way around the loop and it comes back pointing the opposite way. Trace a finger along one "side" of a physical Möbius strip and you visit both faces without ever crossing an edge. Unlike the sphere and torus, it has a boundary: one continuous edge that takes two full loops of the strip parameter to trace back to the start.
The Klein bottle: closed, but only immersed in 3D
The Klein bottle is what results from closing a Möbius strip's single edge into a closed surface — like a bottle whose neck reaches back through its own wall to join its base from the inside. It is closed (no boundary, unlike the Möbius strip) and non-orientable (like the Möbius strip), with 2 crosscaps. Crucially, a genuine embedding — a version with no self-intersections — does not exist in three-dimensional space; it only embeds cleanly in four or more dimensions. The self-crossing neck seen in every 3D rendering is unavoidable: what's actually drawn is an immersion, locally well-behaved everywhere but globally forced to cross itself.
Discovery and real engineering
The Klein bottle was first described by Felix Klein in 1882; the Möbius strip was discovered independently by August Möbius and Johann Listing in 1858 and later inspired M.C. Escher's "Möbius Strip II", showing ants marching in an endless loop. The simulation's fifth surface, the hyperboloid of one sheet, is a doubly ruled surface — every point on it lies on two distinct straight lines — which is exactly why cooling towers and some skyscrapers are built from it: the curved, wind-resistant shape can be constructed entirely from straight steel beams.
Frequently asked questions
What is a parametric surface?
It is a surface described by a function of two parameters, u and v, that returns a point (x, y, z) in space. As u and v sweep across their ranges, the points trace out the whole surface, avoiding the need for a single implicit equation linking x, y and z.
Why does the Klein bottle pass through itself in this simulation?
A true Klein bottle is a non-orientable, closed surface that only embeds without self-intersection in four or more dimensions. What is rendered in 3D is technically an immersion: locally well-behaved with a proper tangent plane everywhere, but globally forced to let the neck pass through the wall.
What makes the Möbius strip special?
The Möbius strip has only one side and one edge. Tracing a finger along it returns you to the start on the opposite face without ever crossing an edge. It is built by sweeping a line segment around a circle while rotating it through half a turn, so the two ends join with a flip.
Try it live
Everything above runs in your browser — open Parametric Surfaces, switch between all five shapes, and drag the canvas to rotate them by hand. Nothing is installed, nothing is uploaded.
▶ Open Parametric Surfaces simulation