# Schwarz Diamond

Implicit · F(x, y, z, t) = 0

`0 = cos(x) · cos(y) · cos z − sin(x) · sin(y) · sin z − c`

[Open in the app](https://www.wavelace.com/app#p=185) · [This page](https://www.wavelace.com/presets/schwarz-diamond)

### What it draws

One sheet that winds through all of space and never meets itself. The formula is two products: the three cosines multiplied together, less the three sines multiplied together. Each repeats every `2π ≈ 6.28`, so the cube, 7 across, shows a little over one period each way.

The formula is 1 at the origin and at `(−π/2, −π/2, −π/2)`, and at every point those two repeat to. Together these points are the sites of a diamond lattice, each with four neighbours 2.72 away. It is −1 on a second diamond lattice, the first moved by π along any axis.

### Two labyrinths

The sheet is where the formula equals `c`, and at `c = 0` it lies exactly between the two lattices. Moving by π along an axis turns the formula into its negative. So that move carries the sheet onto itself and swaps its two sides: the two are the same shape, each a network of fat tunnels round one lattice.

Halfway between two neighbouring sites the formula dips to `1/√2 ≈ 0.71`, its lowest on that line. That is the level at which the tunnels of one labyrinth close.

The sheet also holds whole straight lines. Where `x = π/2` and `y = 0` both products vanish, whatever `z` is.

### History

Hermann Schwarz described the surface this formula approximates in 1865, among the first minimal surfaces known to repeat in three directions. Alan Schoen named it D, for diamond, in 1970, after the two intertwined labyrinths shaped like the bonds of diamond. The true surface has zero mean curvature, like a soap film. This one is a level surface that follows it closely.

### Try

- Drag `c` up to 0.5: one labyrinth thins to struts, four meeting at each site, as the bonds of diamond do.
- Drag `c` on to 0.8: past 0.71 the struts have broken, and a separate blob is left round each site.
- Drag `c` down to −0.5: the other labyrinth thins instead, the same struts moved by π along an axis.
- Delete the sines to leave `cos x cos y cos z − c`, with `c` at 0: flat planes `π ≈ 3.14` apart, crossing at right angles. The sines are what bend them into one sheet.

### Read more

- [Schwarz minimal surface](https://en.wikipedia.org/wiki/Schwarz_minimal_surface)
- [Triply periodic minimal surface](https://en.wikipedia.org/wiki/Triply_periodic_minimal_surface)
- [Diamond cubic](https://en.wikipedia.org/wiki/Diamond_cubic)
- [Minimal surface](https://en.wikipedia.org/wiki/Minimal_surface)
