Python implementation of algorithms and data structures from plane geometry
Project description
planegeometry package
Python implementation of algorithms and data structures from plane geometry is presented.
Problems, algorithms, and data structures
- Geometric objects: points, segments, polygons, rectangles, triangles, circles
- Data structures: edges, graphs, triangle collections, AVL trees, quadtrees, connected planar maps
- Point in polygon problem: the winding number method, the crossing number method
- Polygon orientation
- Bounding box
- Line segment intersection problem: brute force O(n^2), Shamos-Hoey, Bentley-Ottmann
- Closest pair of points problem: brute force search O(n^2), sweep line technique, divide and conquer approach
- Finding two furthest points: brute force search O(n^2), rotating calipers
- Convex hulls: Graham scan O(n log n), Jarvis march (gift wrapping) O(n h), quickhull (divide and conquer approach)
- Delaunay triangulations: naive approach O(n^4), edge flipping, Bowyer-Watson
- Convex polygons: recognition, fan triangulation O(n)
- Monotone polygons: recognition (in progress), monotone triangulation, monotone partition
- Connected planar maps based on the doubly connected edge list (DCEL): constructors, map overlay procedure, mesh refinement (longest edge)
- Voronoi diagrams: from Delaunay triangulation
- Range searching: in progress
Download
To install an official release do
python3 -m pip install planegeometry
To get the git version do
git clone https://github.com/ufkapano/planegeometry.git
Usage
See doc/quickstart.txt and other doc/*.txt files.
Contributors
Andrzej Kapanowski (project leader)
Marcin Permus (convex hull, rotating calipers)
Wojciech Chrobak (sweep line technique, quadtree, closest pair problem)
Monika Wiech (Delaunay triangulation)
Anna Sarnavska (planar maps overlay)
Gabriela Mazur (monotone polygons)
Mateusz Malczewski (Voronoi diagrams, polygon partition)
Maciej Mularski (range searching)
EOF
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file planegeometry-1.0.3.tar.gz.
File metadata
- Download URL: planegeometry-1.0.3.tar.gz
- Upload date:
- Size: 64.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
006305e51c5cfccad5522dee5e250c0e4e782f24b4ed80d9e48ed4e0089685a0
|
|
| MD5 |
e2218c0c293a8d383990991eecc040c1
|
|
| BLAKE2b-256 |
38c10412a2702d5702bebed9c49ebced868f800a3e11f4fd5848e413193402a2
|
File details
Details for the file planegeometry-1.0.3-py3-none-any.whl.
File metadata
- Download URL: planegeometry-1.0.3-py3-none-any.whl
- Upload date:
- Size: 121.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f71c13f72230ffbca855f4e0bb1f1e8948d9f57061a525ded013ddc09154065
|
|
| MD5 |
088ca635d3892f1dcb655e185509b402
|
|
| BLAKE2b-256 |
89d3968a674ecbcf795cfab4829ae42743abdab780c7bc0a971e329bb85cbd2f
|