handle degenerate triangles (usually created with the reprojection)

This commit is contained in:
Sébastien Loriot 2023-04-13 15:17:04 +02:00
parent 06a2f7b3b4
commit 054906fe7c
1 changed files with 4 additions and 0 deletions

View File

@ -188,6 +188,10 @@ void tangential_relaxation(const VertexRange& vertices,
}
prev = n;
}
if (first_run)
return true; //vertex incident only to degenerate faces
if (!get(ecm, edge(first_h, tm)))
if (to_double(first * prev) <= 0)
return false;