Select the DEM
Load the raster in QGIS and select it under ‘Layer’. Check its coordinate reference system and elevations before proceeding.

Manual
Generate an STL from a digital elevation model in QGIS. Explore the parameters shared by Free and PRO and PRO’s additional tools.
Load the raster in QGIS and select it under ‘Layer’. Check its coordinate reference system and elevations before proceeding.

Define a rectangle within the DEM using coordinates, a layer’s extent or a canvas selection. PRO lets you edit corners and centre and rotate the area interactively.

Enter width, length in millimetres or scale; the other values are calculated. PRO can lock the scale when defining the extent.
Once you have defined an area, choose the scale and click the ‘Fix scale’ padlock to its right. With the lock enabled:
Example. At 1:25,000 scale, a 150 × 150 mm model represents a 3,750 × 3,750 m area. With the lock enabled, changing only the width to 200 mm makes the area 5,000 × 3,750 m and the model 200 × 150 mm.
Disable the padlock to adjust the model’s size and scale while keeping the selected extent.

Spacing sets the distance between the points that form the terrain mesh. A smaller value generates more points and triangles and usually increases processing time, memory use and STL file size. A larger value simplifies the mesh but may lose small details.
Enter the ‘Spacing (mm)’ value in model millimetres. The recommendation beside the field also shows the equivalent distance in map units, such as metres or feet, according to the QGIS canvas coordinate reference system.
Example. At 1:25,000 scale, 0.2 mm in the model corresponds to 5 m on a map whose units are metres. This is why the screenshot shows ‘0.2 mm / 5.0 m’. The distance represented by those 0.2 mm changes with the scale.
Choose the spacing to suit the DEM resolution and the detail your printer can reproduce. Sampling more finely than the DEM’s available detail does not create new terrain information. Try a small area before generating a large model.

Set the number of rows and columns to divide the model into equal parts for printing separately. A setting of 1 row × 1 column keeps a single piece. Use splitting when the complete model exceeds the print bed size and check the dimensions of each part.

This factor changes terrain height. Use 1 to preserve vertical proportions; increase it to emphasise elevation differences.
Enable ‘Terrain inversion’ to reverse the relief: high areas become low and vice versa. You can combine this option with vertical exaggeration to adjust the height differences. Check the base elevation, base thickness and, in PRO, the preview before exporting.

Base elevation determines where terrain representation starts. Base height sets physical thickness. Check the minimum and maximum elevations and final model height.

Free and PRO can export generation parameters and import them later. Keep the original DEM and QGIS project as well so you can repeat the work.

Click ‘Preview’ to open the 3D viewer and inspect the terrain, base and separate pieces before exporting. Its controls let you examine the model from different angles. This tool is available in PRO; Free can export without this viewer.
The vertical toolbar on the left contains these options, from top to bottom:
Drag with the left mouse button to orbit the model, use the wheel to zoom in or out, and drag with the right button to pan. The X/Y/Z indicator helps you track the orientation. These movements change the view, not the model’s dimensions or scale.
The information panel shows width, length and height in millimetres, the expected export triangle count and the geometric volume in cm³. If you have split the model, the pieces are displayed apart to make them easier to inspect; that separation is only visual.
The ‘Model preview simplified’ notice means the viewer is using a reduced mesh for inspection. Fine details may be omitted, and its measurements and volume are approximate. STL export uses the spacing you configured for the model.

Both versions export the selected area to GeoJSON. PRO adds KML and PNG, plus sloped side walls for thermoforming moulds. Choose these options to suit your manufacturing process.

Select ‘Export to STL’ and save the binary file. Open it in your print preparation software to review size, orientation and separate pieces.
