Skip to main content

Compute geodesic distances

Project description

External Library Geodesic

The gdist module is a Cython interface to a C++ library (http://code.google.com/p/geodesic/) for computing geodesic distance which is the length of shortest line between two vertices on a triangulated mesh in three dimensions, such that the line lies on the surface.

The algorithm is due Mitchell, Mount and Papadimitriou, 1987; the implementation is due to Danil Kirsanov and the Cython interface to Gaurav Malhotra and Stuart Knock.

Original library (published under MIT license): http://code.google.com/p/geodesic/

We added a python wrapped and made small fixes to the original library, to make it compatible with cython.

To install this, either run pip install gdist or download sources from Github and run python setup.py install in current folder.

Basic test could be:

python
import gdist

Python 2.7, Cython, and a C++ compiler are required.

Debian package

In order to produce a Debian package, assuming you have the requisite tools installed (apt-get install devscripts python-all-dev python-stdeb):

cd debian
debuild -us -uc
cd ../../

and you should find a suitable deb file for your system.

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

tvb-gdist-2.0.0.tar.gz (43.4 kB view details)

Uploaded Source

Built Distribution

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

tvb_gdist-2.0.0-cp37-cp37m-win_amd64.whl (81.0 kB view details)

Uploaded CPython 3.7mWindows x86-64

File details

Details for the file tvb-gdist-2.0.0.tar.gz.

File metadata

  • Download URL: tvb-gdist-2.0.0.tar.gz
  • Upload date:
  • Size: 43.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for tvb-gdist-2.0.0.tar.gz
Algorithm Hash digest
SHA256 7b68e18c0c52b5a89d90b41737bb1c4bd661e6d4473bcbacc0cf80b4d46551ae
MD5 677cd29f6584a8adb0c0f5880fcf5f43
BLAKE2b-256 2bdb30d5909d3238795eea4691aee0bf7d9722601e21dfc9337d1eb0c1b89926

See more details on using hashes here.

File details

Details for the file tvb_gdist-2.0.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: tvb_gdist-2.0.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 81.0 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for tvb_gdist-2.0.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 4306f81c840269212914bf01e082364ec6c2511d5ac4e4a2c470a6a4852e10be
MD5 7f508b5fea9a033b988d85fde90845c5
BLAKE2b-256 d6af8731590973a017c7985867c75e2747cba39a4d7862b8ed5634f3a784d6aa

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