Skip to content

Commit

Permalink
Testbed usage note
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-dejoue committed May 5, 2022
1 parent 39a5f47 commit 36e5514
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions testbed/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -456,8 +458,6 @@ void ConstrainedColor(bool constrain)
}
}



double StringToDouble(const std::string& s)
{
std::istringstream i(s);
Expand Down

0 comments on commit 36e5514

Please sign in to comment.