Skip to main content

Generate 3D print files from .tif files

Project description

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:

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:

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')

Mount Everest Model

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

topogmesh-0.1.5.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

topogmesh-0.1.5-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file topogmesh-0.1.5.tar.gz.

File metadata

  • Download URL: topogmesh-0.1.5.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for topogmesh-0.1.5.tar.gz
Algorithm Hash digest
SHA256 dac131e2f1f5926ef375583de12baf3c0c0c557f1a258a1f08ef7f33c21446b1
MD5 f6f2c36d9031ed919432992ade2bcd26
BLAKE2b-256 d9a5951a24594c3236190a719f8ece30ce624cf85811312a5f05b12b55f12d0f

See more details on using hashes here.

File details

Details for the file topogmesh-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: topogmesh-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for topogmesh-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e7ca71574916970f983fa5ed714a5ef123dd960a499f1acc91b167edcc825d3e
MD5 f3d9ca353f71bfa70ec45474b5bb2d68
BLAKE2b-256 c74406ec360d6918f50f2ecfa532f3e30f0a12c50db28804e7dfd28d83dea324

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page