I wanted a catch-all bowl with a contour map of the Stroud Five Valleys in the bottom, so I asked Claude how I might automate making one. The first version was an OpenSCAD model with a Node script that fetched the elevation data. It worked, but OpenSCAD took a quarter of an hour to render each bowl.
So we moved the whole thing into the browser. You pick the area on a map, the model rebuilds in a second or so as you change the settings, and you download a file ready for the slicer. Like Slime Tray and Trend Setter, it was vibe coded with Claude.
How to use it
Open Contour Maker, then pan and zoom the map until the area you want sits inside the frame. You can also search for a place by name. The frame matches the outline of your model, and the label above it shows the area and the scale.
-
Shape: rounded square, square, circle or hexagon, at any width and depth up to 256 mm.
-
Contour interval sets the density: how many metres of height there are between contours.
-
Step height sets the depth: how many millimetres each contour adds. Keep it to a multiple of your layer height.
-
Style: stacked terraces, raised contour lines on a flat base, or lines on top of terraces.
-
Make it a catch-all bowl adds walls around the map, with a slight outward flare.
-
Colour changes how the preview looks: a height tint, one colour of your choice, or filament bands. For bands, pick two to four colours. Colour 1 is the sea or the bowl floor, the terraces are split evenly between the rest, and the preview shows exactly what a filament change prints, walls included. Near the sea, the coastline becomes the first contour, so the land stands one step proud of the water. For a two-colour print, One contour picks out a single contour in a second colour: swap filament at the start of that step and swap back at the end, either for the whole terrace or just a stripe along its edge. It can also colour the sea or floor, for a blue sea with everything else in one colour, plus a highlighted contour if you like. Every colour can be picked from Bambu Lab's official filament range, from PLA Basic to Silk and Matte, and the filament-change list names the filament for each change.
The panel shows the elevation range, the relief in millimetres and how exaggerated the vertical scale is. It also lists the heights for each filament change. You don't need to add those changes by hand: in a multi-colour plan, the 3MF splits the model at each change and puts every band on its own filament. Open it in Bambu Studio, set filament 1, 2 and so on to the colours listed, and slice.
Download a 3MF (best for Bambu Studio and most slicers), an STL, or an OpenSCAD file with the terrain baked in. The OpenSCAD file has customizer settings, so it also works in MakerWorld's Parametric Model Maker. The address bar keeps your settings, so a link brings back the same model.
Technical details
- No backend: everything happens in the browser. The page is static files, and the heavy lifting runs in a Web Worker so the map and preview stay smooth.
- Elevation: AWS Terrain Tiles, which store heights as RGB values in PNG tiles and allow browsers to fetch them directly. The tiles are decoded byte for byte (not through a canvas, which can shift colours) and sampled in Web Mercator, so the grid lines up exactly with the frame on the map. The tile zoom is picked to suit the area and the detail setting.
- Contours: marching squares over the height grid. The crossings are stitched into closed rings, with outer edges anticlockwise and holes clockwise, and the grid is padded so anything touching the edge closes along it.
- Solids: Manifold, compiled to WebAssembly. Each contour becomes a 2D cross-section, smoothed with an open-then-close offset that rounds off the stair-steps of the grid and drops slivers too thin to print. It's then clipped to the outline and extruded onto the layer below. Manifold guarantees a watertight solid, which is what slicers want.
- Preview: three.js. The single-colour and filament-band modes colour each pixel by its height in a small shader patch, so changing colours never rebuilds the model.
- Exports: 3MF is written by hand and zipped with fflate. It keeps the mesh's exact topology, which STL can't. For a multi-colour plan, Manifold splits the solid at each filament change, and each band becomes a part of one object. A
model_settings.configfile, the format Bambu Studio uses for its own projects, gives each part its filament. Bambu Studio and Orca Slicer read it even from a 3MF made elsewhere, without needing a full project and its printer settings. The OpenSCAD export fills a customizer template with your settings and the height grid. - Filament colours: Bambu Lab's palette of 342 colours across 48 materials, generated from the colour list that ships with Bambu Studio.
- Map: Leaflet with OpenTopoMap tiles, and Nominatim for place search.
Comments
Loading comments…