https://github.com/quantifyearth/topogmesh
https://github.com/quantifyearth/topogmesh
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/quantifyearth/topogmesh
- Owner: quantifyearth
- License: mit
- Created: 2025-07-31T13:42:56.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-08-19T14:36:50.000Z (10 months ago)
- Last Synced: 2025-08-19T14:44:46.087Z (10 months ago)
- Language: Python
- Size: 643 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Topogmesh: 3D printing the planet
## Overview
Topogmesh generates `.3mf` files suitable for 3D printing from terrain `.tif` files. It can also use `.geojson` files to define custom areas of terrain to include in the model.
## Installation
Topogmesh is available on PyPI and can be installed with pip:
```bash
pip install topogmesh
```
## How to use
You will need terrain `.tif` files for the region you want to model and a `.geojson` file to define the area to convert into a 3D printable mesh.
The example below shows generating a 3D model of Mount Everest:
```python
import topogmesh
everest_mesh = topogmesh.mesh_from_shape_file(
shp_path='everest.geojson',
tif_paths=['N27E086.tif', 'N28E086.tif', 'N29E086.tif'],
base_height=5,
scale=0.1
)
topogmesh.export_mesh_to_3mf(everest_mesh, 'everest.3mf')
```
