[PSR] Fixed example saving paths (#8437)

## Summary of Changes

Results of examples were using a file path with a folder.

## Release Management

* Affected package(s): Polygonal Surface Reconstruction
This commit is contained in:
Sebastien Loriot 2024-08-28 11:45:41 +02:00 committed by GitHub
commit 21c75a1f0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 6 deletions

View File

@ -90,7 +90,7 @@ int main()
return EXIT_FAILURE;
}
else {
const std::string& output_file = "data/building_result-0.05.off";
const std::string& output_file = "building_result-0.05.off";
if (CGAL::IO::write_OFF(output_file, model)) {
std::cout << " Done. Saved to " << output_file << ". Time: " << t.time() << " sec." << std::endl;
}
@ -108,7 +108,7 @@ int main()
return EXIT_FAILURE;
}
else {
const std::string& output_file = "data/building_result-0.5.off";
const std::string& output_file = "building_result-0.5.off";
if (CGAL::IO::write_OFF(output_file, model))
std::cout << " Done. Saved to " << output_file << ". Time: " << t.time() << " sec." << std::endl;
else {
@ -125,7 +125,7 @@ int main()
return EXIT_FAILURE;
}
else {
const std::string& output_file = "data/building_result-0.7.off";
const std::string& output_file = "building_result-0.7.off";
if (CGAL::IO::write_OFF(output_file, model)){
std::cout << " Done. Saved to " << output_file << ". Time: " << t.time() << " sec." << std::endl;
}

View File

@ -89,7 +89,7 @@ int main()
}
// Saves the mesh model
const std::string& output_file("data/ball_result.off");
const std::string& output_file("user_provided_planes_result.off");
if (CGAL::IO::write_OFF(output_file, model))
std::cout << " Done. Saved to " << output_file << ". Time: " << t.time() << " sec." << std::endl;
else {

View File

@ -172,7 +172,7 @@ int main()
std::cout << "Saving...";
t.reset();
const std::string& output_file("data/cube_result.off");
const std::string& output_file("with_region_growing_result.off");
if (CGAL::IO::write_OFF(output_file, model))
std::cout << " Done. Saved to " << output_file << ". Time: " << t.time() << " sec." << std::endl;
else {

View File

@ -138,7 +138,7 @@ int main()
// Also stores the candidate faces as a surface mesh to a file
Surface_mesh candidate_faces;
algo.output_candidate_faces(candidate_faces);
const std::string& candidate_faces_file("data/cube_candidate_faces.off");
const std::string& candidate_faces_file("without_input_planes_result.off");
std::ofstream candidate_stream(candidate_faces_file.c_str());
if (CGAL::IO::write_OFF(candidate_stream, candidate_faces))
std::cout << "Candidate faces saved to " << candidate_faces_file << "." << std::endl;