Testbed usage note

This commit is contained in:
Pierre Dejoue 2022-04-24 16:36:26 +02:00
parent 39a5f477ea
commit 36e5514890
2 changed files with 5 additions and 5 deletions

View File

@ -80,7 +80,7 @@ build/testbed/p2t random <num_points> <box_radius> <zoom>
``` ```
Examples: 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 testbed/data/nazca_monkey.dat 0 0 9
build/testbed/p2t random 10 100 5.0 build/testbed/p2t random 10 100 5.0

View File

@ -111,8 +111,10 @@ int main(int argc, char* argv[])
if (argc != 5) { if (argc != 5) {
cout << "-== USAGE ==-" << endl; cout << "-== USAGE ==-" << endl;
cout << "Load Data File: p2t filename center_x center_y zoom" << 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 << " 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; return 1;
} }
@ -456,8 +458,6 @@ void ConstrainedColor(bool constrain)
} }
} }
double StringToDouble(const std::string& s) double StringToDouble(const std::string& s)
{ {
std::istringstream i(s); std::istringstream i(s);