diff --git a/Point_set_3/include/CGAL/Point_set_3/IO.h b/Point_set_3/include/CGAL/Point_set_3/IO.h index bfbaae56a39..013e587b5e7 100644 --- a/Point_set_3/include/CGAL/Point_set_3/IO.h +++ b/Point_set_3/include/CGAL/Point_set_3/IO.h @@ -123,7 +123,7 @@ write_xyz_point_set( std::ostream& stream, ///< output stream. const Point_set_3& point_set) ///< point set { - if (point_set.has_normals()) + if (point_set.has_normal_map()) return CGAL::write_xyz_points_and_normals (stream, point_set.begin(), point_set.end(), point_set.point_map(), point_set.normal_map()); @@ -161,7 +161,7 @@ write_ply_point_set( std::ostream& stream, ///< output stream. const Point_set_3& point_set) ///< point set { - if (point_set.has_normals()) + if (point_set.has_normal_map()) return CGAL::write_ply_points_and_normals (stream, point_set.begin(), point_set.end(), point_set.point_map(), point_set.normal_map());