if deviation is not getting better, do not make the flip

this tiny change seems to improve a lot the overall quality of the
remeshed polyhedron, by avoiding some pathological cases with
vertices of valence 3 (away from border)
This commit is contained in:
Jane Tournois 2016-01-25 17:37:03 +01:00
parent 856d41e8ca
commit 5d8d1c65b8
1 changed files with 1 additions and 1 deletions

View File

@ -678,7 +678,7 @@ namespace internal {
//check that mesh does not become non-triangle,
//nor has inverted faces
if (deviation_pre < deviation_post
if (deviation_pre <= deviation_post
|| !check_normals(he)
|| incident_to_degenerate(he)
|| incident_to_degenerate(opposite(he, mesh_))