README 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ==================
  2. INSTALLATION GUIDE
  3. ==================
  4. ------------
  5. Dependencies
  6. ------------
  7. Core poly2tri lib:
  8. - Standard Template Library (STL)
  9. Testbed:
  10. - gcc
  11. - OpenGL
  12. - GLFW (http://glfw.sf.net)
  13. - Python
  14. Waf (http://code.google.com/p/waf/) is used to compile the testbed.
  15. A waf script (86kb) is included in the repositoty.
  16. ----------------------------------------------
  17. Building the Testbed
  18. ----------------------------------------------
  19. Posix/MSYS environment:
  20. ./waf configure
  21. ./waf build
  22. Windows command line:
  23. python waf configure
  24. python waf build
  25. ----------------------------------------------
  26. Running the Examples
  27. ----------------------------------------------
  28. Load data points from a file:
  29. p2t <filename> <center_x> <center_y> <zoom>
  30. Random distribution of points inside a consrained box:
  31. p2t random <num_points> <box_radius> <zoom>
  32. Examples:
  33. ./p2t dude.dat 300 500 2
  34. ./p2t nazca_monkey.dat 0 0 9
  35. ./p2t random 10 100 5.0
  36. ./p2t random 1000 20000 0.025