How it works
How a place becomes a model
You frame a place on the globe and, about a second later, you get a solid you can print: an island with a sea that fits around it, or a mountain lifted out of its range. This page shows every step, on real places, with the site's own code.
How these pictures were made
Every figure here comes from the site's real code running on real elevation data, not from a simplified re-drawing. Five places were used: Elba, the La Maddalena archipelago, Stromboli, Etna and the Matterhorn. Each was sampled at the site's Draft detail (256 × 256 points), so the little squares you see are the same squares the site works with. The exact procedure, every number and every check are in the working notes.
1
Where the heights come from
The heights are measured by public bodies: space agencies, national mapping offices, regions and universities. Some measured them with radar from satellites, others with lasers from aircraft. Print the world reads them through Mapterhorn, an open project that gathers more than 150 of these datasets and serves them as map tiles anyone can use.
Underneath everything is Copernicus GLO-30, a 30 m model of the whole planet made from the German TanDEM-X radar satellites between 2011 and 2015 and released by the European Union and ESA. Where a country or region has published something finer, Mapterhorn uses that instead. Its rule is simple: the finest dataset wins, gaps are filled from the next best, and the seams between them are blended.
| Place | Finest data | From |
|---|---|---|
| Elba | 10 m | TINITALY 1.1, Istituto Nazionale di Geofisica e Vulcanologia (INGV) |
| La Maddalena | 1 m | Regione Autonoma della Sardegna, 2013 survey |
| Stromboli, Etna | 2 m | Regione Siciliana, ATA 2012–2013 survey |
| Matterhorn | 0.5 m | swissALTI3D, Federal Office of Topography swisstopo; Regione Autonoma Valle d'Aosta, 2 m |
| Everywhere | 30 m | Copernicus GLO-30, DLR and Airbus, provided by the EU and ESA |
On the site, the panel Where the heights come from lists these sources live for whatever you frame, and every model comes with a credits file naming them.
2
A grid of heights
The frame is a square on the map. The site lays an even grid of points over it, 256 × 256 on Draft, 400 × 400 on Fine, 600 × 600 on Finest, and reads a height in metres for each point. To do that it fetches the map tiles that cover the frame, at the most detailed zoom that keeps the count at 64 tiles or fewer, and reads each point's height from the four nearest tile pixels.
A detail that matters. Map tiles at lower zooms are made by averaging, and Mapterhorn rounds heights to whole metres at those zooms (half metres at zoom 12). At the zooms used here, a coastline is therefore drawn from heights that come in steps of 1 m or 0.5 m, right where the 1 m sea-level threshold sits.
3
A softened copy
Real data is noisy: one odd pixel makes a fake islet, a rock cuts a bay in two. So before deciding where the coast goes, the site makes a softened copy of the heights. Each point becomes a weighted average of itself and its neighbours up to two points away; the point itself counts most, and the weights fall off like a bell curve.
The softened copy only decides where the outline goes. The heights that end up in the print are always the real ones.
4
Land or sea, square by square
Four neighbouring points make a little square. On an island, a square counts as land only if all four of its corners are more than 1 m above sea level in the softened copy. Asking for all four corners, not just one, keeps the coastline clean instead of ragged.
5
Cleaning: lakes, crumbs, pinches
Three clean-ups turn a correct map into something a printer can actually make.
Lakes are filled
Any water that doesn't connect to the edge of the frame can't be sea: it's a lake, a salt pan or a hollow. It becomes land, so the island has no holes punched through it.
Crumbs are dropped
Pieces of land smaller than 24 squares, or smaller than 2% of the largest piece, are removed. In plastic they'd be specks that break off or never stick to the bed.
Pinches are cut
When two land squares touch only at a corner, like squares on a chessboard, one of them is removed. Otherwise the file would contain two solids joined at a single point, which slicers reject as broken.
6
Island or mountain
If some of the frame is sea, the model is an island. If it's all land, there's no coast to cut along, so the site looks for a mountain to lift out.
It finds the highest point near the centre of the frame and tries cutting the land at a height: first low, then higher, one step at a time, until the outline closes around the summit's piece of land without touching the frame. To help it close, the cut rises with distance from the centre of the frame: flat at first, then sloping up, so valleys running out to the edge get sealed off. It tries a gentle slope first and steeper ones only if needed.


If no cut works, you get a plain square tile instead.
7
Making the solid
The kept squares become a closed shape made of triangles:
- Size. The frame (for islands) or the outline (for mountains) is scaled to the width you chose, 150 mm by default.
- Height. Each point's height above sea level, or above the cut for a mountain, is scaled the same way, then stretched so the relief reads.
- Base. It all sits on a base 3 mm thick, so on an island sea level is exactly the top of the base.
- Surface. The top is two triangles per square, with corners at the real heights. The bottom is flat, and walls close the sides.
How much to stretch
On Auto, the stretch depends on how steep the place is: the highest relief divided by the model's width on the ground. Steep places stay true; flat ones are stretched up to three times. The steps come from the sister project Isole di Pietra.
8
The sea piece and the gap
An island model comes with a second file: a flat plate the size of the whole frame and the thickness of the base, with an island-shaped hole through it. Print it in another colour and the island drops in.
To make it fit without forcing, the island's walls are pulled in by 0.11 mm and the hole's edges are pushed out by 0.11 mm, leaving a 0.22 mm gap all round. That's in line with the 0.15–0.2 mm clearance fab labs usually recommend for parts that slot together.

9
The check
A printable file has to be sealed, with no gaps and no overlaps. Every triangle edge must be shared by exactly one other triangle. All the files below pass.
| Place | Shape | Relief | Tallest | Triangles | Sealed |
|---|---|---|---|---|---|
| Elba | island + sea | 3× | 13.2 mm | 41,140 + 2,360 | yes, both |
| La Maddalena | island + sea | 3× | 8.4 mm | 78,644 + 5,232 | yes, both |
| Stromboli | island + sea | 1× | 25.9 mm | 93,300 + 2,200 | yes, both |
| Etna | mountain | 1.2× | 27.3 mm | 115,952 | yes |
| Matterhorn | mountain | 1.2× | 33.1 mm | 43,488 | yes |

10
What it doesn't do yet
- Mountains in ranges. The cut only closes where valleys stop draining to the frame edge, which in the Alps can be high up. The Matterhorn above is the honest result: a narrow strip. Isole di Pietra splits ranges at their key col, the lowest pass linking two summits; this site doesn't yet.
- Ridges. Isole di Pietra also smooths outlines so they don't follow every gully; here they can be jaggier.
- Surfaces, not ground. Copernicus records the top of whatever is there, including forests and buildings. National datasets used here are mostly bare ground, so a frame that crosses a border between them can show a step.
- Flat maps of a round Earth. The frame is square on a Web Mercator map, so its scale changes slightly from top to bottom: about 0.6% across a 42 km frame at Elba's latitude.
- The fit. The 0.22 mm gap is measured in the files but hasn't yet been tested on a printer.
Take it with you
The same explanation, in two more formats, and everything needed to check it or build on it. Written by Claude Opus 5.5, prompted by Fabio Venni.
-
The book
This page at length, in chapters, typeset for print at 170 × 240 mm.
-
The paper
The method in formal terms: every rule as an equation, results on five sites, limitations and references.
-
LaTeX sources
Book and paper, with figures and fonts. Compile with
latexmk -xelatex book.texandlatexmk -pdf paper.tex. -
Everything
The LaTeX plus the height grids for the five places, the harness that runs the site's own code on them, and the scripts that draw every figure and render.
-
Working notes
Every step, number and check, in the order they were done.
Sources
Data
- Copernicus DEM GLO-30. Produced using Copernicus WorldDEM-30 © DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA; all rights reserved.
- Tarquini S., Isola I., Favalli M., Battistini A., Dotta G. (2023). TINITALY, a digital elevation model of Italy with a 10 meters cell size (Version 1.1). INGV. doi:10.13127/tinitaly/1.1
- swissALTI3D, Federal Office of Topography swisstopo.
- Modello digitale del terreno 2 m, volo ATA 2012–2013, Regione Siciliana, CC BY 4.0.
- DTM e DSM passo 1 metro, volo 2013, Regione Autonoma della Sardegna, CC BY 4.0.
- Modello Digitale del Terreno, Regione Autonoma Valle d'Aosta, CC BY 4.0.
- Mapterhorn, public terrain tiles. mapterhorn.com/attribution
Further reading
- Harding C., Hasiuk F., Wood A. (2021). TouchTerrain: 3D printable terrain models. ISPRS International Journal of Geo-Information 10(3), 108. doi:10.3390/ijgi10030108
- Kirmse A., de Ferranti J. (2017). Calculating the prominence and isolation of every mountain in the world. Progress in Physical Geography 41, 788–802. doi:10.1177/0309133317738163
- Rosenfeld A., Pfaltz J. L. (1966). Sequential operations in digital picture processing. Journal of the ACM 13(4), 471–494.
- Imhof E. (1965; English ed. 2007). Cartographic Relief Presentation. ESRI Press.