mirror of https://github.com/CGAL/cgal
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:
parent
856d41e8ca
commit
5d8d1c65b8
|
|
@ -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_))
|
||||
|
|
|
|||
Loading…
Reference in New Issue