Merge pull request #7079 from afabri/Polyfit-fix_path-GF

Polyfit: Fix path in example
This commit is contained in:
Laurent Rineau 2022-12-05 12:21:58 +01:00
commit b3ba4bcfee
7 changed files with 11 additions and 11 deletions

View File

@ -182,7 +182,7 @@ The following example shows how to control the model complexity by tuning the we
\remark
This example also shows how to reuse the intermediate results from the candidate generation step.
\cgalExample{Polygonal_surface_reconstruction/polyfit_example_model_complexty_control.cpp}
\cgalExample{Polygonal_surface_reconstruction/polyfit_example_model_complexity_control.cpp}
\section secPerformances Performance

View File

@ -1,6 +1,6 @@
/*!
\example Polygonal_surface_reconstruction/polyfit_example_without_input_planes.cpp
\example Polygonal_surface_reconstruction/polyfit_example_user_provided_planes.cpp
\example Polygonal_surface_reconstruction/polyfit_example_model_complexty_control.cpp
\example Polygonal_surface_reconstruction/polyfit_example_model_complexity_control.cpp
\example Polygonal_surface_reconstruction/polyfit_example_with_region_growing.cpp
*/

View File

@ -51,13 +51,13 @@ endif()
create_single_source_cgal_program("polyfit_example_without_input_planes.cpp")
create_single_source_cgal_program("polyfit_example_user_provided_planes.cpp")
create_single_source_cgal_program("polyfit_example_model_complexty_control.cpp")
create_single_source_cgal_program("polyfit_example_model_complexity_control.cpp")
create_single_source_cgal_program("polyfit_example_with_region_growing.cpp")
foreach(
target
polyfit_example_without_input_planes polyfit_example_user_provided_planes
polyfit_example_model_complexty_control polyfit_example_with_region_growing)
polyfit_example_model_complexity_control polyfit_example_with_region_growing)
target_link_libraries(${target} PUBLIC CGAL::Eigen3_support)
if(TARGET CGAL::SCIP_support)
target_link_libraries(${target} PUBLIC CGAL::SCIP_support)

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

@ -125,7 +125,7 @@ int main()
return EXIT_FAILURE;
}
const std::string& output_file("data/cube_result.off");
const std::string& output_file("without_input_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 {
@ -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_cube_candidate_faces.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;