Skip to content

Commit

Permalink
Remove Waf build system, fix jhasse#14
Browse files Browse the repository at this point in the history
  • Loading branch information
jhasse committed Nov 6, 2020
1 parent e9938d9 commit 83680d9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 264 deletions.
65 changes: 20 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,53 +29,8 @@ Core poly2tri lib:

Testbed:

* gcc
* OpenGL
* [GLFW](http://glfw.sf.net)
* Python

[waf](http://code.google.com/p/waf/) is used to compile the testbed.
A waf script (86kb) is included in the repositoty.

Building the Testbed
--------------------

Posix/MSYS environment:
```
./waf configure
./waf build
```

Windows command line:
```
python waf configure
python waf build
```

Alternatively, the testbed can be built using cmake. See below.

Running the Examples
--------------------

Load data points from a file:
```
p2t <filename> <center_x> <center_y> <zoom>
```
Random distribution of points inside a constrained box:
```
p2t random <num_points> <box_radius> <zoom>
```
Examples:
```
./build/p2t testbed/data/dude.dat 300 500 2
./build/p2t testbed/data/nazca_monkey.dat 0 0 9
./build/p2t random 10 100 5.0
./build/p2t random 1000 20000 0.025
```

BUILD WITH CMAKE
================

Build the library
-----------------
Expand Down Expand Up @@ -105,6 +60,26 @@ cmake -GNinja -DP2T_BUILD_TESTBED=ON
cmake --build .
```

Running the Examples
--------------------

Load data points from a file:
```
p2t <filename> <center_x> <center_y> <zoom>
```
Random distribution of points inside a constrained box:
```
p2t random <num_points> <box_radius> <zoom>
```
Examples:
```
./build/p2t testbed/data/dude.dat 300 500 2
./build/p2t testbed/data/nazca_monkey.dat 0 0 9
./build/p2t random 10 100 5.0
./build/p2t random 1000 20000 0.025
```

References
==========

Expand Down
173 changes: 0 additions & 173 deletions waf

This file was deleted.

46 changes: 0 additions & 46 deletions wscript

This file was deleted.

0 comments on commit 83680d9

Please sign in to comment.