Loading repository data…
Loading repository data…
marcinbator / repository
Python Blender script for converting .asc (Numeric Terrain Model ASCII grid) to 3D printable block)
This script allows to convert .asc file containing Digital Terrain Model of terrain to the 3D model ready to export as .stl file, e.g. for printing.
Download the .asc file with the digital terrain model (using https://github.com/marcinbator/geoportal-asc-terrain-downloader, or manually from https://mapy.geoportal.gov.pl/imap/Imgp_2.html?gpmap=gp0 (on the left: data download -> WCS -> Digital terrain model - Arc/info ASCII grid -> Draw area -> Download file)).
In the .asc file, replace the dx and dy lines with the following lines (if needed):
cellsize 1.0001
NODATA_value 0
Blender: Install the BlenderGIS library (https://github.com/domlysz/BlenderGIS).
GIS -> Import -> ESRI ASCII Grid (asc).
Scripting -> paste or load the ./script.py file, press RUN and wait (this can take very long).
Export -> .stl.