Drag to rotate · scroll to zoom
Hilbert Cube — 3D Hilbert Curve Sculpture, One Unbroken Path — render 1
Hilbert Cube — 3D Hilbert Curve Sculpture, One Unbroken Path — render 2
Hilbert Cube — 3D Hilbert Curve Sculpture, One Unbroken Path — render 3
Hilbert Cube — 3D Hilbert Curve Sculpture, One Unbroken Path — render 4
Free STL download

Hilbert Cube — 3D Hilbert Curve Sculpture, One Unbroken Path

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.

About this model

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.

Why it works

One unbroken path

All 64 grid points visited in 63 steps, without crossing or repeating — a true 3D Hilbert curve of order 2.

Verified coordinates

Generated with a published algorithm and checked: 64 distinct points, every step one unit long.

Solid and sturdy

A 6 mm square bar on a 15 mm grid, one connected body in a 51 mm cube.

Clear about supports

Overhanging runs are unavoidable for this curve; 9 mm gaps leave room to remove tree supports.

Small file

732 triangles, perfectly flat faces.

How to print it

MaterialPLA or PETG
Layer height0.20 mm
SupportsYes — tree or organic supports under the overhanging bars on the second and third levels. The short bridges on the top level print without them.
  • Tree or organic supports are much easier to remove from the inside of the lattice than grid supports.
  • A support interface or a 0.2 mm Z gap makes the bar undersides peel off cleanly.
  • Print it in the orientation of the file; the other faces need at least as much support.
  • A matte or silk filament shows the folded path nicely.

At a glance

Size
51.0 × 51.0 × 51.0 mm
Curve
3D Hilbert curve, order 2: 64 points, 63 steps of 15 mm (945 mm of path)
Bar
6 mm square, 9 mm gaps between neighbouring bars
Volume
34.2 cm³ solid
Triangles
732
Print orientation
On a face, as in the file (both ends of the path on the bed)
Supports
Required under the overhanging bars (see notes)
Images
Computer renders of the STL, not photos of a print
Licence
Free for personal use

Want this personalised?

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.

Open the free generators

Questions

What is a Hilbert curve?

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.

Why does it need supports?

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.

Could it be printed bigger or with a thinner bar?

Scaling up works well and makes support removal easier. Scaling down below about 70 % makes the gaps between the bars tight for removing supports.

Is the next step of the curve possible?

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.

Are the images photos of a printed cube?

No, they are renders of this STL. One colours the steps inside the first small cube to show where the path starts.

More models

See all models

Related topics

hilbert curve space filling curve math art mathematical sculpture geometric fractal cube desk sculpture stem education free stl