Skip to content

Commit

Permalink
fixed saving paths
Browse files Browse the repository at this point in the history
  • Loading branch information
soesau committed Aug 28, 2024
1 parent 5791f21 commit 4eb51f7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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 {
Expand All @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4eb51f7

Please sign in to comment.