python package for fast shortest path computation on 2D polygon or grid maps
Project description
python package for fast geometric shortest path computation in 2D multi-polygon or grid environments based on visibility graphs.
Quick Guide:
pip install extremitypathfinder
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.
Project details
Release history Release notifications | RSS feed
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.6.0.tar.gz
(38.5 kB
view hashes)
Built Distribution
Close
Hashes for extremitypathfinder-2.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75f820cd6026756064b5629f113ba768fd462e2cdf70fe8eb2a837db6022b6e1 |
|
MD5 | fe86342dc4f6d8b703af784a170e3fb4 |
|
BLAKE2b-256 | e85ae90f863af890f9ae9e2c7e50f15fad069fc9248d3cde97b966204a334d4e |
Close
Hashes for extremitypathfinder-2.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea4aee3edc861edc18898f96f88dea0b7c9f154b18b5efae0dc74e60fb1c5b4e |
|
MD5 | 0113063ff95054496eb940b58ec6367d |
|
BLAKE2b-256 | 42578649f8db1e91fb2abd4bf6a40f15b460268a17c567d4320fa6e6d9b939d1 |