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.2.tar.gz (9.1 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.2-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: topogmesh-0.1.2.tar.gz
  • Upload date:
  • Size: 9.1 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.2.tar.gz
Algorithm Hash digest
SHA256 67394be97bdacb75c522405074382da3a7e35eafddbc8ce91b45c01e5d66c66e
MD5 0b993a8e2b5ff531cfa6ba18f1e23cba
BLAKE2b-256 c0ffefefb7f827ebb4778425873a54f87bce7abd8ab61ec6f5e2d07b3b5cdf3d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: topogmesh-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7ce8af1ecc6a925219ac0d84e06460f9813b539e3bf016d2f78713e09c47b8de
MD5 c8b9435115719d13728668a7919630f3
BLAKE2b-256 024cd1d3bc64c650163ea8a49ab616b7ebd54bceb5c93cb344dcc579f6c0fc12

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