From 6f875f6fa0a7cd286512b76af7a5acfcfb7a17db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Fri, 28 Mar 2025 21:04:58 +0100 Subject: [PATCH] loose > lose --- .../Alpha_wrap_3/Quality/generate_quality_benchmark_charts.py | 4 ++-- .../CGAL/Optimal_bounding_box/internal/fitness_function.h | 4 ++-- .../include/CGAL/Optimal_bounding_box/internal/optimize_2.h | 4 ++-- .../include/CGAL/Optimal_bounding_box/internal/population.h | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Alpha_wrap_3/benchmark/Alpha_wrap_3/Quality/generate_quality_benchmark_charts.py b/Alpha_wrap_3/benchmark/Alpha_wrap_3/Quality/generate_quality_benchmark_charts.py index 0df5ed5e0f4..264dec30935 100644 --- a/Alpha_wrap_3/benchmark/Alpha_wrap_3/Quality/generate_quality_benchmark_charts.py +++ b/Alpha_wrap_3/benchmark/Alpha_wrap_3/Quality/generate_quality_benchmark_charts.py @@ -134,13 +134,13 @@ def main(argv): avg_diff_str = str(format(abs(avg_diff_to_goal), '.2f')) if key == "Mean_Min_Angle_(degree)" or key == "Mean_Max_Angle_(degree)": if avg_diff_to_goal < 0 : - title += "\nIn average we loose " + title += "\nIn average we lose " else : title += "\nIn average we gain " title += avg_diff_str + "° toward 60°" elif key == "Mean_Radius_Ratio" or key == "Mean_Edge_Ratio" or key == "Mean_Aspect_Ratio" : if avg_diff_to_goal < 0 : - title += "\nIn average we loose " + title += "\nIn average we lose " else : title += "\nIn average we gain " title += avg_diff_str + " of ratio toward 1" diff --git a/Optimal_bounding_box/include/CGAL/Optimal_bounding_box/internal/fitness_function.h b/Optimal_bounding_box/include/CGAL/Optimal_bounding_box/internal/fitness_function.h index 2eab0c64061..696ebf615a9 100644 --- a/Optimal_bounding_box/include/CGAL/Optimal_bounding_box/internal/fitness_function.h +++ b/Optimal_bounding_box/include/CGAL/Optimal_bounding_box/internal/fitness_function.h @@ -39,7 +39,7 @@ compute_fitness(const typename Traits::Matrix& R, // rotation matrix CGAL_assertion(points.size() >= 3); FT xmin, ymin, zmin, xmax, ymax, zmax; - //cast from double to float looses data, so cast with {} is not allowed + //cast from double to float loses data, so cast with {} is not allowed //cast from double to exact types also works xmin = ymin = zmin = FT((std::numeric_limits::max)()); xmax = ymax = zmax = FT(std::numeric_limits::lowest()); @@ -83,7 +83,7 @@ compute_fitness_if_smaller(const typename Traits::Matrix& R, // rotation matrix CGAL_assertion(points.size() >= 3); FT xmin, ymin, zmin, xmax, ymax, zmax; - //cast from double to float looses data, so cast with {} is not allowed + //cast from double to float loses data, so cast with {} is not allowed //cast from double to exact types also works xmin = ymin = zmin = FT((std::numeric_limits::max)()); xmax = ymax = zmax = FT(std::numeric_limits::lowest()); diff --git a/Optimal_bounding_box/include/CGAL/Optimal_bounding_box/internal/optimize_2.h b/Optimal_bounding_box/include/CGAL/Optimal_bounding_box/internal/optimize_2.h index ae450d781e8..cdcbe384173 100644 --- a/Optimal_bounding_box/include/CGAL/Optimal_bounding_box/internal/optimize_2.h +++ b/Optimal_bounding_box/include/CGAL/Optimal_bounding_box/internal/optimize_2.h @@ -104,7 +104,7 @@ compute_2D_deviation(const PointRange& points, if(theta > 0.25 * CGAL_PI) // @todo is there a point to this theta = 0.5 * CGAL_PI - theta; - //cast from double to float looses data, so cast with {} is not allowed + //cast from double to float loses data, so cast with {} is not allowed //cast from double to exact types also works return std::make_pair(pol.area(), FT(theta)); } @@ -125,7 +125,7 @@ void optimize_along_OBB_axes(typename Traits::Matrix& rot, rotated_points.reserve(points.size()); FT xmin, ymin, zmin, xmax, ymax, zmax; - //cast from double to float looses data, so cast with {} is not allowed + //cast from double to float loses data, so cast with {} is not allowed //cast from double to exact types also works xmin = ymin = zmin = FT((std::numeric_limits::max)()); xmax = ymax = zmax = FT(std::numeric_limits::lowest()); diff --git a/Optimal_bounding_box/include/CGAL/Optimal_bounding_box/internal/population.h b/Optimal_bounding_box/include/CGAL/Optimal_bounding_box/internal/population.h index 8223f7afed5..7ed14357ef2 100644 --- a/Optimal_bounding_box/include/CGAL/Optimal_bounding_box/internal/population.h +++ b/Optimal_bounding_box/include/CGAL/Optimal_bounding_box/internal/population.h @@ -121,7 +121,7 @@ public: Vertex& get_best_vertex() { std::size_t simplex_id = static_cast(-1), vertex_id = static_cast(-1); - //cast from double to float looses data, so cast with {} is not allowed + //cast from double to float loses data, so cast with {} is not allowed //cast from double to exact types also works FT best_fitness = FT((std::numeric_limits::max)()); for(std::size_t i=0, ps=m_simplices.size(); i