Fix some builds that fail with cgal 5.2.3
This commit is contained in:
parent
25a3ab255b
commit
f494ad565b
1 changed files with 3 additions and 2 deletions
|
@ -159,8 +159,9 @@ template<class _Mesh> TriangleMesh cgal_to_triangle_mesh(const _Mesh &cgalmesh)
|
||||||
int i = 0;
|
int i = 0;
|
||||||
Vec3i facet;
|
Vec3i facet;
|
||||||
for (auto v : vtc) {
|
for (auto v : vtc) {
|
||||||
if (i > 2 || v < 0 || v >= cgalmesh.vertices().size()) { i = 0; break; }
|
int iv = v;
|
||||||
facet(i++) = v;
|
if (i > 2 || iv < 0 || iv >= int(cgalmesh.vertices().size())) { i = 0; break; }
|
||||||
|
facet(i++) = iv;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i == 3)
|
if (i == 3)
|
||||||
|
|
Loading…
Reference in a new issue