Skip to content

Commit 65e3298

Browse files
committed
Use std::subranges instead or ranges-v3
CURA-12528 In an attempt to fix build on Mac (and it is also better to use std than external libs anyway)
1 parent 15d88e2 commit 65e3298

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/unwrap.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ std::vector<Vector> calculateProjectionNormals(const std::vector<FaceData>& face
5656
});
5757

5858
// The unprocessed_faces is a sub-range of the faces list, that contains all the faces that have not been assigned to a group yet.
59-
auto unprocessed_faces = ranges::subrange(faces_to_process);
59+
auto unprocessed_faces = std::ranges::subrange(faces_to_process);
6060

6161
while (true)
6262
{
@@ -70,7 +70,7 @@ std::vector<Vector> calculateProjectionNormals(const std::vector<FaceData>& face
7070
});
7171

7272
// All the faces placed to the current group are now no more in the unprocessed faces
73-
unprocessed_faces = ranges::subrange(unprocessed_faces.begin(), current_faces_group.begin());
73+
unprocessed_faces = std::ranges::subrange(unprocessed_faces.begin(), current_faces_group.begin());
7474

7575
// Sum all the normals of the current faces group to get the average direction
7676
Vector summed_normals = std::accumulate(
@@ -113,7 +113,7 @@ std::vector<Vector> calculateProjectionNormals(const std::vector<FaceData>& face
113113
// Remove the faces from the unprocessed faces
114114
const auto last_position = std::prev(unprocessed_faces.end());
115115
std::iter_swap(best_outlier_face, last_position);
116-
unprocessed_faces = ranges::subrange(unprocessed_faces.begin(), last_position);
116+
unprocessed_faces = std::ranges::subrange(unprocessed_faces.begin(), last_position);
117117
}
118118
else if (! projection_normals.empty())
119119
{

0 commit comments

Comments
 (0)