Touch Terrain: A python app to create 3D printable terrain models (STL/OBJ) from only elevation data (via Google Earth Engine) or from a local geotiff. Has been used for CNC terrain models. Runs as a web app (http://touchterrain.org), as .py file (standalone.py) or as jupyter notebook. Docker image: https://github.com/ChHarding/TouchTerrain_jupyter_docker
Previously the way lines were stacked didn't look right for diagonal tracks as it was always adding the same offset to both x and y coords, so a SW-NE line would look correct but a NW-SE line would be too thin. It now uses the slope of the line to do better and though it's still not perfect it looks better IMHO.
Also refactored the line plotting into a separate func and added unit tests.
Previously the way lines were stacked didn't look right for diagonal tracks as it was always adding the same offset to both x and y coords, so a SW-NE line would look correct but a NW-SE line would be too thin. It now uses the slope of the line to do better and though it's still not perfect it looks better IMHO.
Also refactored the line plotting into a separate func and added unit tests.