Diamond Struts

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

0 = 10(sin(x − π/4) · sin(y − π/4) · sin(z − π/4) + sin(x − π/4) · cos(y − π/4) · cos(z − π/4) + cos(x − π/4) · sin(y − π/4) · cos(z − π/4) + cos(x − π/4) · cos(y − π/4) · sin(z − π/4)) − 0.7(cos(4x) + cos(4y) + cos(4z)) − c

Open in the app The dials and keys named below are the app's.

What it draws

A frame of round struts, four meeting at every joint, as the bonds of diamond do. The joints are 2.72 apart, and the pattern repeats every 2π ≈ 6.28 along each axis. The cube, 9 across, holds a little under a period and a half.

The long bracket is four products of sines and cosines of x − π/4, y − π/4 and z − π/4. The short one adds a ripple four times as fine, cos(4x) + cos(4y) + cos(4z). The letter c is the level.

The same diamond

The long bracket is Schwarz's diamond surface in a second spelling. With every angle moved back by π/4, it equals −√2 times cos x cos y cos z − sin x sin y sin z. Ten times the bracket therefore runs between −14.1 and 14.1.

At level 0 that formula gives a sheet between two diamond lattices. A level well away from 0 thins one side to a frame. Here c = 9 is nearly two thirds of the way to 14.1.

What the ripple does

Without the ripple, a frame at this level is lumpy: fat at the joints, with a neck 0.32 in radius halfway along each strut. The ripple is largest at the joints and smallest halfway between them. Subtracting it lowers the formula at the joints and raises it at the necks, which grow to 0.46.

The formula then has nearly the same value at a joint, 3.04, as at the middle of a strut, 3.10. That is why the struts read as rods of even thickness.

Try

  • Change the 0.7 to 0: the ripple is gone, and the rods turn back into lumps joined by narrow necks.
  • Drag c down to 5: the struts fatten, to a radius of 0.74 halfway along.
  • Drag c down to 0: the struts have swollen into a rippled sheet, with nearly as much space on one side of it as on the other.
  • Drag c on to −9: the other lattice is what is left, and there the ripple works the other way. Its necks closed at −7.9, so only separate blobs remain.

Read more

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