Skip to content

Commit

Permalink
Fix build with CGAL 5.6
Browse files Browse the repository at this point in the history
Signed-off-by: Filipe Laíns <lains@riseup.net>
Co-authored-by: Andreas Rammhold <andreas@rammhold.de>
  • Loading branch information
FFY00 and andir committed Sep 9, 2024
1 parent 22885b0 commit fb8bcae
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 fb8bcae

Please sign in to comment.