Skip to content

Commit

Permalink
Fix build with CGAL 5.6
Browse files Browse the repository at this point in the history
Surface_mesh iterators no longer return references, so it's necessary to
use const references or copies when iterating.
  • Loading branch information
jbroadus committed Dec 8, 2023
1 parent 3d2ab8e commit ce00f63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libslic3r/MeshBoolean.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,12 @@ indexed_triangle_set cgal_to_indexed_triangle_set(const _Mesh &cgalmesh)
const auto &vertices = cgalmesh.vertices();
int vsize = int(vertices.size());

for (auto &vi : vertices) {
for (const auto &vi : vertices) {
auto &v = cgalmesh.point(vi); // Don't ask...
its.vertices.emplace_back(to_vec3f(v));
}

for (auto &face : faces) {
for (const auto &face : faces) {
auto vtc = cgalmesh.vertices_around_face(cgalmesh.halfedge(face));

int i = 0;
Expand Down

0 comments on commit ce00f63

Please sign in to comment.