mirror of
https://github.com/jhasse/poly2tri.git
synced 2024-11-29 16:53:30 +01:00
Testbed usage note
This commit is contained in:
parent
39a5f477ea
commit
36e5514890
@ -80,7 +80,7 @@ build/testbed/p2t random <num_points> <box_radius> <zoom>
|
||||
```
|
||||
Examples:
|
||||
```
|
||||
build/testbed/p2t testbed/data/dude.dat 300 500 2
|
||||
build/testbed/p2t testbed/data/dude.dat 350 500 3
|
||||
build/testbed/p2t testbed/data/nazca_monkey.dat 0 0 9
|
||||
|
||||
build/testbed/p2t random 10 100 5.0
|
||||
|
@ -111,8 +111,10 @@ int main(int argc, char* argv[])
|
||||
|
||||
if (argc != 5) {
|
||||
cout << "-== USAGE ==-" << endl;
|
||||
cout << "Load Data File: p2t filename center_x center_y zoom" << endl;
|
||||
cout << "Example: ./build/p2t testbed/data/dude.dat 500 500 1" << endl;
|
||||
cout << "Load Data File: p2t <filename> <center_x> <center_y> <zoom>" << endl;
|
||||
cout << " Example: build/testbed/p2t testbed/data/dude.dat 350 500 3" << endl;
|
||||
cout << "Generate Random Polygon: p2t random <num_points> <box_radius> <zoom>" << endl;
|
||||
cout << " Example: build/testbed/p2t random 100 1 500" << endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -456,8 +458,6 @@ void ConstrainedColor(bool constrain)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
double StringToDouble(const std::string& s)
|
||||
{
|
||||
std::istringstream i(s);
|
||||
|
Loading…
Reference in New Issue
Block a user