Skip to main content

Compute geodesic distances

Project description

Geodesic Library

The tvb-gdist module is a Cython interface to a C++ library (https://code.google.com/archive/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 (TVB Team).

Original library (published under MIT license): https://code.google.com/archive/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 tvb-gdist or download sources from Github and run python setup.py install in current folder.

Basic test could be:

python
import gdist

Python 3, Cython, and a C++ compiler are required unless the Pypi whl files are compatible with your system.

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.

Current Build Status

https://travis-ci.com/the-virtual-brain/tvb-gdist.svg?branch=trunk

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.2.tar.gz (48.2 kB view hashes)

Uploaded Source

Built Distributions

tvb_gdist-2.0.2-cp38-cp38-win_amd64.whl (78.7 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

tvb_gdist-2.0.2-cp38-cp38-macosx_10_9_x86_64.whl (81.8 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

tvb_gdist-2.0.2-cp37-cp37m-win_amd64.whl (78.2 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

tvb_gdist-2.0.2-cp36-cp36m-win_amd64.whl (78.1 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

Supported by

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