diff --git a/Surface_mesh/include/CGAL/Surface_mesh/IO/3MF.h b/Surface_mesh/include/CGAL/Surface_mesh/IO/3MF.h index 8594c62ceb6..2f0b1d83f0c 100644 --- a/Surface_mesh/include/CGAL/Surface_mesh/IO/3MF.h +++ b/Surface_mesh/include/CGAL/Surface_mesh/IO/3MF.h @@ -51,18 +51,18 @@ bool read_3MF(const std::string& filename, std::vector >& output) { typedef std::vector PointRange; - typedef std::vector Polygon; - typedef std::vector PolygonRange; + typedef std::vector Triangle; + typedef std::vector TriangleRange; typedef CGAL::Surface_mesh SMesh; typedef typename SMesh::Vertex_index Vertex_index; typedef typename SMesh::Face_index Face_index; std::vector all_points; - std::vector all_polygons; + std::vector all_triangles; std::vector names; std::vector > all_colors; - const bool success = CGAL::read_3MF(filename, all_points, all_polygons, all_colors, names); + const bool success = CGAL::read_3MF(filename, all_points, all_triangles, all_colors, names); if(!success) { std::cerr << "Error in reading meshes." << std::endl; @@ -77,7 +77,7 @@ bool read_3MF(const std::string& filename, { bool skip = false; SMesh sm; - PolygonRange triangles = all_polygons[i]; + TriangleRange triangles = all_triangles[i]; PointRange points = all_points[i]; std::vector colors = all_colors[i]; @@ -87,7 +87,7 @@ bool read_3MF(const std::string& filename, for(const Point& p : points) sm.add_vertex(p); - for(Polygon& triangle : triangles) + for(Triangle& triangle : triangles) { std::vector face; face.reserve(triangle.size());