diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/autorefinement.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/autorefinement.h index c273e36f064..d5df6c67eaa 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/autorefinement.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/autorefinement.h @@ -1576,13 +1576,13 @@ bool autorefine_triangle_soup(PointRange& soup_points, soup_triangles_out.reserve(offset + new_triangles.size()); for (const std::pair, std::size_t>& t_and_id : new_triangles) { + soup_triangles_out.push_back({ get_point_id(t_and_id.first[0]), + get_point_id(t_and_id.first[1]), + get_point_id(t_and_id.first[2]) }); if constexpr(std::is_same_v) visitor.new_subdivision(soup_triangles_out[soup_triangles_out.size()-1], soup_triangles[tri_inter_ids_inverse[t_and_id.second]]); else visitor.new_subtriangle(soup_triangles_out.size(), tri_inter_ids_inverse[t_and_id.second]); - soup_triangles_out.push_back({ get_point_id(t_and_id.first[0]), - get_point_id(t_and_id.first[1]), - get_point_id(t_and_id.first[2]) }); } }