Fix crash with some models after hole drilling
This commit is contained in:
parent
29544c0d3d
commit
5e3da340ae
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ template<class _Mesh> TriangleMesh cgal_to_triangle_mesh(const _Mesh &cgalmesh)
|
|||
int i = 0;
|
||||
Vec3i facet;
|
||||
for (auto v : vtc) {
|
||||
if (i > 2) { i = 0; break; }
|
||||
if (i > 2 || v < 0 || v >= cgalmesh.vertices().size()) { i = 0; break; }
|
||||
facet(i++) = v;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue