added user input

This commit is contained in:
Bishwash Khanal 2023-01-27 14:04:44 +05:45 committed by GitHub
parent 5f205d3506
commit d671f6069a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -39,9 +39,9 @@ typedef CGAL::Nth_of_tuple_property_map<2, PNI>
* candidate generation are cached and reused.
*/
int main()
int main(int argc, char* argv[])
{
const std::string& input_file(CGAL::data_file_path("points_3/building.ply"));
const std::string input_file = (argc > 1) ? argv[1] : CGAL::data_file_path("points_3/building.ply");
std::ifstream input_stream(input_file.c_str());
std::vector<PNI> points; // store points