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, the crossing number
- 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: in progress (recognition, triangulation)
- Connected planar maps based on the doubly connected edge list (DCEL): constructors, map overlay procedure.
- Voronoi diagrams: from Delaunay triangulation
Installation
See doc/quickstart.txt
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)
Maciej Mularski (range searching)
EOF
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
planegeometry-1.0.0.tar.gz
(55.0 kB
view hashes)
Built Distribution
Close
Hashes for planegeometry-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 328e6548ebe9c202b96096e29070cf92ca48e188ed956e874a19f3ec8ebe4404 |
|
MD5 | 5910ff47785ff465ae256530545a787e |
|
BLAKE2b-256 | 4f091b797dd7cafe5499b51c7e67d7af78c9e3ed133e9acb1db92eb538584fee |