Lines 152-163
indexed_triangle_set cgal_to_indexed_triangle_set(const _Mesh &cgalmesh)
Link Here
|
152 |
const auto &vertices = cgalmesh.vertices(); |
152 |
const auto &vertices = cgalmesh.vertices(); |
153 |
int vsize = int(vertices.size()); |
153 |
int vsize = int(vertices.size()); |
154 |
|
154 |
|
155 |
for (auto &vi : vertices) { |
155 |
for (const auto &vi : vertices) { |
156 |
auto &v = cgalmesh.point(vi); // Don't ask... |
156 |
auto &v = cgalmesh.point(vi); // Don't ask... |
157 |
its.vertices.emplace_back(to_vec3f(v)); |
157 |
its.vertices.emplace_back(to_vec3f(v)); |
158 |
} |
158 |
} |
159 |
|
159 |
|
160 |
for (auto &face : faces) { |
160 |
for (const auto &face : faces) { |
161 |
auto vtc = cgalmesh.vertices_around_face(cgalmesh.halfedge(face)); |
161 |
auto vtc = cgalmesh.vertices_around_face(cgalmesh.halfedge(face)); |
162 |
|
162 |
|
163 |
int i = 0; |
163 |
int i = 0; |