Peak Forge for Blender

The same idea as Peaked Forge, moved inside Blender. Point the add-on at a GPX file and it fetches the real elevation under the route, builds a watertight terrain model with the track raised on its surface, reports the dimensions in millimetres, and exports something a printer will accept. Pure Python, 94 tests, GPL-3.0.

The output: a 100 mm disc with the Matterhorn at the back and the route climbing toward it.
The output: a 100 mm disc with the Matterhorn at the back and the route climbing toward it.
Step one, the GPX loaded: 171 points, 8.2 km, bounding box, and every setting on one panel.
Step one, the GPX loaded: 171 points, 8.2 km, bounding box, and every setting on one panel.
Mid-build. A progress bar, the current stage, and Esc to cancel, so Blender never locks up.
Mid-build. A progress bar, the current stage, and Esc to cancel, so Blender never locks up.
The evidence panel: both meshes watertight, 100 x 100 x 33 mm, 1560 to 4345 m, and the height warning it raised itself.
The evidence panel: both meshes watertight, 100 x 100 x 33 mm, 1560 to 4345 m, and the height warning it raised itself.
Wireframe: the route ribbon draped over the terrain grid, which is the mesh the STL actually carries.
Wireframe: the route ribbon draped over the terrain grid, which is the mesh the STL actually carries.
The switchbacks below the hut, standing proud of the ground rather than painted on it.
The switchbacks below the hut, standing proud of the ground rather than painted on it.
Straight down, where the whole route reads at once.
Straight down, where the whole route reads at once.
Joined into one body: the route unioned into the terrain for a single-material print.
Joined into one body: the route unioned into the terrain for a single-material print.
The same route as a rectangular tile. One input, several shapes.
The same route as a rectangular tile. One input, several shapes.
Model, route and export settings, with the export that ends the job.
Model, route and export settings, with the export that ends the job.

Why it belongs in Blender

Peaked Forge is a web app, and a web app is the right answer for somebody who wants one model and does not own a 3D tool. It is the wrong answer for somebody who already lives in Blender and wants the mesh as an editable object in a scene they are building. Same pipeline, delivered where that person already is: a tab in the sidebar rather than a site to visit and a file to download.

Watertight is the only acceptable answer

A terrain model that looks correct and is not manifold is a model that fails in the slicer, usually after someone has waited for the export. So the panel reports it as a fact rather than an assumption: Terrain Watertight and Route Watertight each state yes or no beside the finished mesh, next to the bounding box in millimetres and the elevation range in metres. The print either works or you know why before you leave Blender.

Millimetres, not world units

The model is sized the way a print is specified: 100 mm disc, 60% margin, a cap on relief height. When the requested elevation exaggeration would push the model past that cap, the add-on reduces it and says so on the panel rather than silently clipping the peak. In these images it dropped the scale from 1.5x to 1.18x on its own, and reported it.

Blender does not freeze

Generating terrain means fetching tiles and meshing a grid, which is long enough that a modal block would feel broken. The build runs with a progress bar, a live stage label and Esc to cancel, so the window stays responsive and the work is interruptible. The process shot here is a real mid-build state, not a staged one.

What the wireframe admits

The faceting visible in the close renders is the actual mesh: a 200-sample grid at roughly half a millimetre of spacing, flat shaded, which is exactly what lands in the STL. Smoothing it for a prettier render would show something the printer will not make. For the same reason the summit here reads 4,345 m rather than the Matterhorn's 4,478 m: at 200 samples across ten kilometres each sample averages about fifty metres of ground, and that takes the tip off a needle peak. Correct behaviour, and worth stating rather than cropping.

Highlights

Elevation data: Mapzen Terrain Tiles / Tilezen, hosted by AWS Open Data; sources include NASA SRTM, USGS and Copernicus. The route is a demo file, a plausible Zermatt to Hornli hut line drawn for these images with invented timestamps, not a recorded activity. The terrain under it is real elevation data. Every mesh shown was generated by the add-on; nothing is modelled or retouched. The web version of the same idea is Peaked Forge.

More Development