Fix some builds that fail with cgal 5.2.3

This commit is contained in:
tamasmeszaros 2021-10-18 14:38:19 +02:00
parent 25a3ab255b
commit f494ad565b

View File

@ -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)