missing IO namespace

This commit is contained in:
Dmitry Anisimov 2021-06-01 16:34:55 +02:00
parent 4f1fc20e22
commit beef78cab7
3 changed files with 11 additions and 11 deletions

View File

@ -73,8 +73,8 @@ void save_point_regions_2(
}
std::ofstream out(fullpath);
CGAL::set_ascii_mode(out);
CGAL::write_PLY_with_properties(
CGAL::IO::set_ascii_mode(out);
CGAL::IO::write_PLY_with_properties(
out, pwc,
CGAL::make_ply_point_writer(PLY_Point_map()),
std::make_tuple(
@ -120,8 +120,8 @@ void save_point_regions_3(
}
std::ofstream out(fullpath);
CGAL::set_ascii_mode(out);
CGAL::write_PLY_with_properties(
CGAL::IO::set_ascii_mode(out);
CGAL::IO::write_PLY_with_properties(
out, pwc,
CGAL::make_ply_point_writer(PLY_Point_map()),
std::make_tuple(
@ -170,8 +170,8 @@ void save_segment_regions_2(
}
std::ofstream out(fullpath);
CGAL::set_ascii_mode(out);
CGAL::write_PLY_with_properties(
CGAL::IO::set_ascii_mode(out);
CGAL::IO::write_PLY_with_properties(
out, pwc,
CGAL::make_ply_point_writer(PLY_Point_map()),
std::make_tuple(
@ -218,8 +218,8 @@ void save_segment_regions_3(
}
std::ofstream out(fullpath);
CGAL::set_ascii_mode(out);
CGAL::write_PLY_with_properties(
CGAL::IO::set_ascii_mode(out);
CGAL::IO::write_PLY_with_properties(
out, pwc,
CGAL::make_ply_point_writer(PLY_Point_map()),
std::make_tuple(
@ -314,7 +314,7 @@ void save_polygon_mesh_regions(
face_color[Face_index(static_cast<size_type>(index))] = color;
}
}
CGAL::write_PLY(out, polygon_mesh);
CGAL::IO::write_PLY(out, polygon_mesh);
}
} // namespace utils

View File

@ -38,7 +38,7 @@ int main(int argc, char *argv[]) {
const std::string filename = is_default_input ? "data/polygon_mesh.off" : argv[1];
Polygon_mesh polygon_mesh;
if (!CGAL::read_polygon_mesh(filename, polygon_mesh, CGAL::parameters::all_default())) {
if (!CGAL::IO::read_polygon_mesh(filename, polygon_mesh, CGAL::parameters::all_default())) {
std::cerr << "ERROR: cannot read the input file!" << std::endl;
return EXIT_FAILURE;
}

View File

@ -35,7 +35,7 @@ int main(int argc, char *argv[]) {
const std::string filename = is_default_input ? "data/am.off" : argv[1];
Surface_mesh surface_mesh;
if (!CGAL::read_polygon_mesh(filename, surface_mesh, CGAL::parameters::all_default())) {
if (!CGAL::IO::read_polygon_mesh(filename, surface_mesh, CGAL::parameters::all_default())) {
std::cerr << "ERROR: cannot read the input file!" << std::endl;
return EXIT_FAILURE;
}