Changed the API a bit. Fortune algorithm is run right away, with the list of edges available at Voronoi.edges. The edges are Edge objects. They can be trimmed to a rectangle using tools.img_coord. The general test cycle is now implemented inside unittests.run_test.
author Karol Krizka
Wed, 08 Aug 2012 18:37:40 +0000 (20:37 +0200)
committer Karol Krizka
Wed, 08 Aug 2012 18:37:40 +0000 (20:37 +0200)
commit f9db780e4a73dbcaaa49cd29880e0b2fffdf9454
tree 0d7fa836ddd2494b3105e1f40127c9f5ac341e34
parent 1357fd89b434fed1702b68ef794e5661b3383fbc
Changed the API a bit. Fortune algorithm is run right away, with the list of edges available at Voronoi.edges. The edges are Edge objects. They can be trimmed to a rectangle using tools.img_coord. The general test cycle is now implemented inside unittests.run_test.
test-random.py
test-verticaledge.py
test-verticalmirror.py
tools.py [ new file with mode 0644 ]
unittests.py [ new file with mode 0644 ]
voronoi.py