🍩 Torus & Surface Genus

Topology classifies surfaces by the number of holes — the genus g. A sphere has genus 0, a torus (donut) has genus 1, a double torus has genus 2. The Euler characteristic χ = 2 − 2g summarises this in one number.

🔭 Surface

🎛 View Mode

⚙️ Parameters

📐 Topological Invariants

Genus g
1
Euler χ
0
Orientable
Yes
π₁ (fund. group)
ℤ × ℤ

ℹ️ Theory

Euler characteristic χ = V − E + F is a topological invariant. For a closed orientable surface of genus g: χ = 2 − 2g.

Homeomorphism theorem: any compact, connected, orientable surface is homeomorphic to a sphere with g handles attached.

The torus has fundamental polygon aba⁻¹b⁻¹ (edges identified in pairs).

🍩 Torus & Surface Genus

About this simulation

This simulation explores the topology of closed orientable surfaces: the sphere, the torus (donut) and the double torus. Topology classifies such surfaces by their genus — the number of holes — which makes a coffee mug and a donut topologically identical. These ideas underpin everything from the shape of the universe in cosmology to the connectivity of computer networks and the structure of DNA.

How it works

  • A parametric mesh is generated for the chosen surface (sphere, torus or double torus).
  • Each vertex is rotated in 3D and projected onto the 2D canvas with perspective.
  • Wireframe, shaded (painter's algorithm) and polygon-net views render the same geometry differently.
  • The topological invariants — genus, Euler characteristic and fundamental group — update live.

Key equations

χ = V − E + F = 2 − 2g — χ is the Euler characteristic, V/E/F are the vertices, edges and faces of any triangulation, and g is the genus (number of holes).

Controls

  • Surface — switch between torus (g=1), double torus (g=2) and sphere (g=0).
  • View mode — wireframe, shaded or fundamental polygon net.
  • Major / minor radius — reshape the torus tube and ring.
  • Rotation speed & mesh resolution — adjust auto-spin and detail.
  • Drag the canvas to rotate the surface manually.

Did you know?

A torus and a sphere can never be smoothly deformed into one another — you cannot remove a hole without cutting. This is captured by the fundamental group: the sphere's is trivial, while the torus's is ℤ × ℤ, reflecting its two independent loops.

Related simulations

🔮 Torus & Genus — Topology Euler Characteristic Interactive 🔮 Klein Bottle — Topology of Non-Orientable Surfaces ∞ Möbius Strip — Topology One-Sided Surface 📍 Brouwer Fixed Point Theorem 🪢 Knot Theory — Invariants, Crossings & Reidemeister Moves 🎨 Spirograph