From 126d07977bc34a93f70e8cf6f45284d66caaf21d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Sun, 13 Feb 2022 21:09:58 +0100 Subject: [PATCH] Remove useless check --- .../include/CGAL/Polygon_mesh_processing/distance.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/distance.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/distance.h index 6e1168ec292..2b142cf663a 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/distance.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/distance.h @@ -1522,8 +1522,7 @@ double bounded_error_Hausdorff_impl(const TriangleMesh1& tm1, CGAL_assertion(triangle_bounds.lower >= FT(0)); CGAL_assertion(triangle_bounds.upper >= triangle_bounds.lower); - if((triangle_bounds.upper > global_bounds.lower) && - (triangle_bounds.upper - triangle_bounds.lower > error_bound)) + if(triangle_bounds.upper - triangle_bounds.lower > error_bound) { // Get the triangle that is to be subdivided and read its vertices. const Triangle_3& triangle_for_subdivision = triangle_and_bound.triangle;