Skip to content

Commit f702189

Browse files
authored
Tetrahedral_remeshing - fix operator<() for Dihedral_angle_cosine (#8886)
## Summary of Changes using <= makes possible to have `dh1 < dh2 && dh2 < dh1 == true` which is not valid! This PR fixes [this testsuite](https://cgal.geometryfactory.com/CGAL/testsuite/CGAL-6.1-Ic-153/Constrained_triangulation_3_Examples/TestReport_Christo_MSVC2017-Debug-64bits.gz) (running remesh_constrained_Delaunay_triangulation_3) ## Release Management * Affected package(s): Tetrahedral_remeshing * License and copyright ownership: unchanged
2 parents 25d7076 + e7aec72 commit f702189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tetrahedral_remeshing/include/CGAL/Tetrahedral_remeshing/internal/tetrahedral_remeshing_helpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ struct Dihedral_angle_cosine
257257
CGAL_assertion(l.m_sgn != CGAL::POSITIVE);
258258
CGAL_assertion(r.m_sgn != CGAL::POSITIVE);
259259

260-
return (l.m_sq_num * r.m_sq_den >= r.m_sq_num* l.m_sq_den);
260+
return (l.m_sq_num * r.m_sq_den > r.m_sq_num* l.m_sq_den);
261261
}
262262
}
263263

0 commit comments

Comments
 (0)