poly2tri/README

51 lines
1017 B
Plaintext
Raw Normal View History

2010-01-21 17:20:56 +01:00
==================
2010-01-21 15:28:16 +01:00
INSTALLATION GUIDE
==================
2010-01-22 21:08:55 +01:00
------------
2010-01-21 15:28:16 +01:00
Dependencies
------------
Core poly2tri lib:
2010-02-10 13:14:38 +01:00
- Standard Template Library (STL)
2010-01-21 15:28:16 +01:00
Testbed:
- gcc
- OpenGL
2010-01-22 20:52:28 +01:00
- GLFW (http://glfw.sf.net)
- Python
2010-01-21 15:28:16 +01:00
2010-02-10 13:14:38 +01:00
Waf (http://code.google.com/p/waf/) is used to compile the testbed.
A waf script (86kb) is included in the repositoty.
2010-01-22 21:08:55 +01:00
----------------------------------------------
2010-01-21 17:20:56 +01:00
Building the Testbed
2010-01-21 15:28:16 +01:00
----------------------------------------------
Posix/MSYS environment:
./waf configure
./waf build
Windows command line:
python waf configure
python waf build
2010-01-22 21:08:55 +01:00
----------------------------------------------
Running the Examples
2010-01-21 15:28:16 +01:00
----------------------------------------------
Load data points from a file:
p2t <filename> <center_x> <center_y> <zoom>
Random distribution of points inside a consrained box:
p2t random <num_points> <box_radius> <zoom>
2010-01-21 15:28:16 +01:00
2010-01-22 21:08:55 +01:00
Examples:
2010-01-21 15:28:16 +01:00
2010-01-22 21:08:55 +01:00
./p2t dude.dat 300 500 2
./p2t nazca_monkey.dat 0 0 9
./p2t random 10 100 5.0
./p2t random 1000 20000 0.025