From aea3f1dc86acee040ad317d78d45d72178c2c0bc Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Thu, 1 Jun 2023 14:49:58 +0200 Subject: [PATCH] Small optimization into its_convex_hull_2d_above() --- src/libslic3r/TriangleMesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/TriangleMesh.cpp b/src/libslic3r/TriangleMesh.cpp index 66bf913e0..4bf9fd486 100644 --- a/src/libslic3r/TriangleMesh.cpp +++ b/src/libslic3r/TriangleMesh.cpp @@ -903,7 +903,7 @@ Polygon its_convex_hull_2d_above(const indexed_triangle_set& its, const Transfor chs.push_back(collect_mesh_projection_points_above(range)); }); - const Polygons polygons(chs.begin(), chs.end()); + const Polygons polygons(std::make_move_iterator(chs.begin()), std::make_move_iterator(chs.end())); return Geometry::convex_hull(polygons); }