Skip to content

Latest commit

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

This is the existing poly2tri.python library, updated such that it seems to build with python3.4. Any other correctness, or compatiblity
has not been evaluated.
==================
INSTALLATION GUIDE
==================
------------
Dependencies
------------
Core poly2tri lib:
- Cython (0.14.1)
Testbed:
- Pygame
Building:
- setuptools
----------------------------------------------
Building the library
----------------------------------------------
On Windows, follow the instructions here to set up your environment:
http://rexdouglass.com/python-64-bit-on-windows-part-2-building-packages/
Then to create a wheel package, run the following command:
python setup.py bdist_wheel
This will create a .whl package in dist/ directory which can then be redistributed.
On Linux, you can do:
python setup.py build_ext -i
----------------------------------------------
Running the Examples
----------------------------------------------
python test.py <filename> <translate-x> <translate-y> <zoom>
Examples:
python test.py data/dude.dat 100 -200 1
python test.py data/nazca_monkey.dat 400 300 4.5

About

poly2tri.python triangulation library for python. Updated for Python3

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages