One square bar that folds back and forth 63 times to visit all 64 points of a cube — and never crosses itself.
No account, no email, no wait — the file downloads straight from this page.
In 1891 the mathematician David Hilbert described a curve that winds through a square so thoroughly that, repeated forever, it passes through every single point of it. The same idea works in three dimensions. This sculpture is the second step of the three-dimensional Hilbert curve: one continuous path that visits all 64 points of a 4 × 4 × 4 grid, moving one grid step at a time, never visiting a point twice and never crossing itself. Built as a 6 mm square bar on a 15 mm grid, it becomes a solid, open lattice that fits exactly in a 51 mm cube.
What makes the Hilbert curve special is how it is built: the cube is split into eight smaller cubes, the path visits them one after another, always stepping into a neighbouring one, and inside each small cube the same pattern repeats, turned and mirrored so that the end of one part meets the start of the next. Because of that, points that are close together along the path are also close together in space, which is why Hilbert curves are used in computing to store map and image data so that neighbours stay together. In the sculpture you can see the eight sub-cubes as eight similar folded shapes.
The coordinates were generated with a standard Hilbert index-to-coordinates algorithm (published by John Skilling in 2004) and checked before modelling: 64 different points, and every one of the 63 steps exactly one grid unit long. Laid end to end the steps would make a bar 945 mm long. One of the renders colours the seven steps inside the first small cube, so you can follow where the path begins in the bottom corner. Both ends of the path lie on the bottom face, at neighbouring corners.
An honest note on printing: this model needs supports. Some horizontal bars on the upper levels have nothing beneath them, and the geometry of the curve makes that unavoidable — we checked all six ways of standing the cube on a face, and every one leaves overhanging runs. In the orientation of the file, eight short runs on the top level span only 9 mm between two posts and bridge without help, but four three-step runs on the second level are held at one end only, and six single bars on the third level start in mid-air. Use tree or organic supports; the 9 mm gaps between the bars leave room to reach in and remove them. Print in PLA at 0.2 mm with three walls and 15 % infill; the solid volume is 34.2 cm³.
The result makes a good desk sculpture, a talking point for a maths classroom, or a companion to other mathematical models such as a Menger sponge or a Möbius strip. All pictures are computer renders of this STL, including straight front and top views that show the folded pattern of the path.
All 64 grid points visited in 63 steps, without crossing or repeating — a true 3D Hilbert curve of order 2.
Generated with a published algorithm and checked: 64 distinct points, every step one unit long.
A 6 mm square bar on a 15 mm grid, one connected body in a 51 mm cube.
Overhanging runs are unavoidable for this curve; 9 mm gaps leave room to remove tree supports.
732 triangles, perfectly flat faces.
This model is a fixed design. If you need your own name, text or dimensions on something, the LyraMaker generators build it in your browser for free — no account, no watermark and no limit on downloads.
A path that fills a square or cube by visiting it piece by piece in a fixed recursive order. Each step of the construction divides the space into smaller cells and visits all of them; in the limit, the curve passes through every point.
Some horizontal bars of the curve start from nothing below them on every possible face-down orientation. Eight short ones bridge fine; the rest need support.
Scaling up works well and makes support removal easier. Scaling down below about 70 % makes the gaps between the bars tight for removing supports.
The order-3 curve has 512 points; as a print it would be a very dense lattice that is hard to free from supports, so this model stops at order 2.
No, they are renders of this STL. One colours the steps inside the first small cube to show where the path starts.
An open desk stand that keeps every USB stick and memory card in one place — visible, reachable and impossible to lose.
A 100 mm architectural model of the Al-Aqsa compound that glows from the inside when you set a light beneath it.
A little figure hauling your phone on a mini cargo carrier — a desk stand people actually stop and ask about.