quad-edge data structure
Project description
# PyDelaunator Test of implementation of a quad-edge data structure using python.
This little project is here to study quad-edge structure for further developments of [Delaunator](https://pypi.python.org/pypi/delaunator), which waits since a long time.
There is a small GUI (done with the awesome [pyglet](http://pyglet.org) module) that allow one to play with the triangulation.
## Installation/requirements Installation in one command, including dependancies:
pip install pydelaunator
## Notes ### Goals This work is mainly here to prototype a better API and detect where and why are bugs in Delaunator.
Efficiency is not a primarily goal, altough, since interfacing python with other languages is a fun exercise, i probably will try some optimizations related to C. Similarly, some algorithms ideas could be easily tested here.
Therefore, PyDelaunator is also a playground for further researchs.
### Computational geometry [Codes used there](geometry.py) are mainly constitued from online ressources (SO, wikipedia). They are not toroughly [tested](test_geometry.py), but as far as the triangulation works.
Implementating them in C could probably speed them up a little, since in python arithmetic codes tends to be costly.
### Duality Vertex/data Maybe not the most optimized, but a mapping object/vertex with a dict is certainly the less invasive for end-user, [as implemented in the Placer object](placer.py).
Other ways to go:
client objects inheriting from Vertex
client objects keeping a reference to their vertex
These two ways are probably far more efficient in case of big data. However, if current API allow these, Placer object continue to track objects using the dict mapping. Modification of the Placer is needed, or an alternative implementation.
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
File details
Details for the file pydelaunator-0.0.2.tar.gz
.
File metadata
- Download URL: pydelaunator-0.0.2.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77f7034a583190d6502910f799387b8b55f643e53cbabbc0d888e5d527530a9d |
|
MD5 | c45389b98358132d5be628593a482793 |
|
BLAKE2b-256 | 53c459dd214fab10bd74a5a543d29f0a51fc726eb9d9db54c41ac66c7702a585 |