diff --git a/Kinetic_shape_reconstruction/examples/Kinetic_shape_reconstruction/kinetic_precomputed_shapes_example.cpp b/Kinetic_shape_reconstruction/examples/Kinetic_shape_reconstruction/kinetic_precomputed_shapes_example.cpp index 350302b12ef..75ce537e25c 100644 --- a/Kinetic_shape_reconstruction/examples/Kinetic_shape_reconstruction/kinetic_precomputed_shapes_example.cpp +++ b/Kinetic_shape_reconstruction/examples/Kinetic_shape_reconstruction/kinetic_precomputed_shapes_example.cpp @@ -61,10 +61,10 @@ int main(const int argc, const char** argv) { std::vector input_vertices; std::vector< std::vector > input_faces; - if (CGAL::read_OFF(input_file_off, input_vertices, input_faces)) { + if (CGAL::IO::read_OFF(input_file_off, input_vertices, input_faces)) { std::cout << "* reading the OFF file: " << input_filename << "!" << std::endl; input_file_off.close(); - } else if (CGAL::read_PLY(input_file_ply, input_vertices, input_faces)) { + } else if (CGAL::IO::read_PLY(input_file_ply, input_vertices, input_faces)) { std::cout << "* reading the PLY file: " << input_filename << "!" << std::endl; input_file_ply.close(); } else { diff --git a/Kinetic_shape_reconstruction/examples/Kinetic_shape_reconstruction/kinetic_reconstruction_example.cpp b/Kinetic_shape_reconstruction/examples/Kinetic_shape_reconstruction/kinetic_reconstruction_example.cpp index 4a41de34aa4..63c8d19bc7e 100644 --- a/Kinetic_shape_reconstruction/examples/Kinetic_shape_reconstruction/kinetic_reconstruction_example.cpp +++ b/Kinetic_shape_reconstruction/examples/Kinetic_shape_reconstruction/kinetic_reconstruction_example.cpp @@ -180,7 +180,7 @@ int main(const int argc, const char** argv) { output_filename = "partition-faces.ply"; std::ofstream output_file_faces(output_filename); output_file_faces.precision(20); - if (!CGAL::write_PLY(output_file_faces, all_vertices, all_faces)) { + if (!CGAL::IO::write_PLY(output_file_faces, all_vertices, all_faces)) { std::cerr << "ERROR: can't write to the file " << output_filename << "!" << std::endl; return EXIT_FAILURE; } @@ -191,7 +191,7 @@ int main(const int argc, const char** argv) { output_filename = "reconstructed-model.ply"; std::ofstream output_file_model(output_filename); output_file_model.precision(20); - if (!CGAL::write_PLY(output_file_model, output_vertices, output_faces)) { + if (!CGAL::IO::write_PLY(output_file_model, output_vertices, output_faces)) { std::cerr << "ERROR: can't write to the file " << output_filename << "!" << std::endl; return EXIT_FAILURE; } diff --git a/Kinetic_shape_reconstruction/include/CGAL/KSR/debug.h b/Kinetic_shape_reconstruction/include/CGAL/KSR/debug.h index db5cd7c2919..54b5f3a78f5 100644 --- a/Kinetic_shape_reconstruction/include/CGAL/KSR/debug.h +++ b/Kinetic_shape_reconstruction/include/CGAL/KSR/debug.h @@ -138,7 +138,7 @@ void dump_2d_surface_mesh( const std::string filename = (tag != std::string() ? tag + "-" : "") + "polygons.ply"; std::ofstream out(filename); out.precision(20); - CGAL::write_PLY(out, mesh); + CGAL::IO::write_PLY(out, mesh); out.close(); } @@ -211,7 +211,7 @@ void dump_polygons(const DS& data, const std::string tag = std::string()) { const std::string filename = (tag != std::string() ? tag + "-" : "") + "polygons.ply"; std::ofstream out(filename); out.precision(20); - CGAL::write_PLY(out, mesh); + CGAL::IO::write_PLY(out, mesh); out.close(); #if false @@ -779,7 +779,7 @@ void dump_cdt( file_name += "support-cdt-" + std::to_string(sp_idx) + ".ply"; std::ofstream out(file_name); out.precision(20); - CGAL::write_PLY(out, mesh); + CGAL::IO::write_PLY(out, mesh); out.close(); } diff --git a/Kinetic_shape_reconstruction/test/Kinetic_shape_reconstruction/kinetic_3d_test_all.cpp b/Kinetic_shape_reconstruction/test/Kinetic_shape_reconstruction/kinetic_3d_test_all.cpp index 10bc368b680..e93bc252514 100644 --- a/Kinetic_shape_reconstruction/test/Kinetic_shape_reconstruction/kinetic_3d_test_all.cpp +++ b/Kinetic_shape_reconstruction/test/Kinetic_shape_reconstruction/kinetic_3d_test_all.cpp @@ -57,7 +57,7 @@ bool run_test( std::ifstream input_file(input_filename); std::vector input_vertices; std::vector< std::vector > input_faces; - const bool is_input_success = CGAL::read_OFF(input_file, input_vertices, input_faces); + const bool is_input_success = CGAL::IO::read_OFF(input_file, input_vertices, input_faces); assert(is_input_success); if (!is_input_success) return false; std::vector times;