Skip to main content

python package for fast shortest path computation on 2D polygon or grid maps

Project description

https://github.com/jannikmi/extremitypathfinder/actions/workflows/build.yml/badge.svg?branch=master documentation status https://img.shields.io/pypi/wheel/extremitypathfinder.svg pre-commit Total PyPI downloads latest version on PyPI https://img.shields.io/badge/code%20style-black-000000.svg

python package for fast geometric shortest path computation in 2D multi-polygon or grid environments based on visibility graphs.

./docs/_static/title_demo_plot.png

Quick Guide:

Install the package with the optional Numba extra for a significant speedup:

pip install extremitypathfinder[numba]
from extremitypathfinder import PolygonEnvironment

environment = PolygonEnvironment()
# counter clockwise vertex numbering!
boundary_coordinates = [(0.0, 0.0), (10.0, 0.0), (9.0, 5.0), (10.0, 10.0), (0.0, 10.0)]
# clockwise numbering!
list_of_holes = [
    [
        (3.0, 7.0),
        (5.0, 9.0),
        (4.5, 7.0),
        (5.0, 4.0),
    ],
]
environment.store(boundary_coordinates, list_of_holes, validate=False)
start_coordinates = (4.5, 1.0)
goal_coordinates = (4.0, 8.5)
path, length = environment.find_shortest_path(start_coordinates, goal_coordinates)

For more refer to the documentation.

Also see: GitHub, PyPI

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

extremitypathfinder-2.7.2.tar.gz (40.3 kB view details)

Uploaded Source

Built Distribution

extremitypathfinder-2.7.2-py3-none-any.whl (47.9 kB view details)

Uploaded Python 3

File details

Details for the file extremitypathfinder-2.7.2.tar.gz.

File metadata

  • Download URL: extremitypathfinder-2.7.2.tar.gz
  • Upload date:
  • Size: 40.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for extremitypathfinder-2.7.2.tar.gz
Algorithm Hash digest
SHA256 903498578db6dfaca3e7cbe8279f2e13baa2043660084fb4455f6588af4d93f1
MD5 9e9bf8c3be23307cb911672ed2a41b29
BLAKE2b-256 5c5a8692b0a56aca8f51fb5d839d2607ff71b95fd6ba6540784666e09668ac4f

See more details on using hashes here.

File details

Details for the file extremitypathfinder-2.7.2-py3-none-any.whl.

File metadata

File hashes

Hashes for extremitypathfinder-2.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e17d6a3f29d54b240825450e3dac2fc332bfdff62c8247bcddcc007fa38f7151
MD5 26cfe6329371610154e2ddc41b3d18e6
BLAKE2b-256 27bd426d797f117e6df0b17045f8640ef5da232bcd1b2ba4f7e38e103b6185de

See more details on using hashes here.

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