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