Metatron's Cube

A friend of mine asked me about a figure from sacred geometry called Metatron's Cube - so I decided to make one using NodeBox.

Metatron's cube consists of 13 circles linked together in a certain way. There are many possible ways of drawing it; I challenged myself to make one using less than 13 nodes.

My solution uses only 11 nodes. The linkAll subnetwork (which draws lines from every circle to every other circle) is a rare example of a single-node subnetwork. It's just a line node. The same set of positions are fed into it once as individual values and once as a list.

Because of the way I made it, the central circle is actually three overlapping circles. If need be you can easily remove the duplicates by adding two slice nodes after the ungroup (remove circles 7, then 11). If you are into this sort of thing, you can highlight different line segments in different colors to show the shadows of various 3D and higher dimensional shapes hidden within the cube.

The whole thing took me only a few minutes and is a nice example of how easily NodeBox can draw certain things.