ChHarding / TouchTerrain_for_CAGEO

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
http://touchterrain.geol.iastate.edu
218 stars 47 forks source link

Improved the algorithm for gpx track thickness #75

Closed atrevarrow closed 1 year ago

atrevarrow commented 1 year ago

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.