CLIENT WORK · DEPARTMENT OF MATHEMATICS · UPPSALA UNIVERSITY

TorusDraw

Draw in 2D. Explore the same construction in 3D.

A custom browser application commissioned by the Department of Mathematics at Uppsala University. TorusDraw makes drawing on mathematical surfaces something users can edit and explore directly.

TorusDraw interface showing a topology-aware drawing workspace beside a 3D surface preview
Edit the drawing in 2D and explore the same construction on the 3D surface.

The client’s problem

Drawing on a torus or another quotient surface involves rules about how opposite edges connect. A static diagram cannot show what happens when a drawing crosses those edges or when the underlying cell changes.

The department needed an interactive workspace where those rules are part of the tool, rather than something a user has to reconstruct mentally.

What I delivered

  • One editable construction: draw, select and transform objects in a repeated 2D workspace.
  • Connected 2D and 3D: explore the same construction on the corresponding surface without redrawing it.
  • Configurable surfaces: change the cell vectors and edge connections to explore the plane, cylinder, torus, Möbius strip, Klein bottle and projective plane.
  • Project continuity: layers, undo/redo, browser-local continuity and file import/export support work beyond a single sketch.

Keep one drawing consistent

I designed and developed the interface, editable project model, drawing interactions, surface classification and 3D rendering.

The challenge was to keep one drawing consistent across every repeated copy and its 3D view. Selecting or moving a shape in a visible copy still had to edit the same underlying object. Changing the cell’s shape or edge connections had to preserve that relationship too.

An editable workspace for exploring surfaces

The delivered application turns an abstract mathematical relationship into a manipulable browser workspace. Users can draw across boundaries, change the surface rules and inspect how one construction appears in different representations.

Scope and limitations

The 3D views illustrate topology; they are not a promise of metric-preserving embeddings. Some surfaces require representations with self-intersections or other compromises. The canvas workspace is primarily visual and is not a complete screen-reader drawing workflow.

Browser storage is local to the device. File export is the portable route for keeping and transferring a project. The technical page explains the geometry, interaction model and validation in detail.

Need a specialist browser tool?

If your work has its own rules, a custom interface can make them easier to use. Tell me who the tool is for and what they need to do.