mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-09 07:56:24 -06:00
Fix build error with CGAL 5.6 with -std=gnu++17 on Fedora (#3045)
Fix build with CGAL 5.6 Surface_mesh iterators no longer return references, so it's necessary to use const references or copies when iterating.
This commit is contained in:
parent
a8f69377df
commit
325009bc48
1 changed files with 2 additions and 2 deletions
|
@ -200,12 +200,12 @@ indexed_triangle_set cgal_to_indexed_triangle_set(const _Mesh &cgalmesh)
|
||||||
const auto &vertices = cgalmesh.vertices();
|
const auto &vertices = cgalmesh.vertices();
|
||||||
int vsize = int(vertices.size());
|
int vsize = int(vertices.size());
|
||||||
|
|
||||||
for (auto &vi : vertices) {
|
for (const auto &vi : vertices) {
|
||||||
auto &v = cgalmesh.point(vi); // Don't ask...
|
auto &v = cgalmesh.point(vi); // Don't ask...
|
||||||
its.vertices.emplace_back(to_vec3f(v));
|
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));
|
auto vtc = cgalmesh.vertices_around_face(cgalmesh.halfedge(face));
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue