From 192ae3fb83ef84a60e57250e5c96c6874726949b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Fri, 25 Feb 2022 15:56:27 +0100 Subject: [PATCH] Use kernel functor --- Distance_3/include/CGAL/Distance_3/Point_3_Triangle_3.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Distance_3/include/CGAL/Distance_3/Point_3_Triangle_3.h b/Distance_3/include/CGAL/Distance_3/Point_3_Triangle_3.h index f293993e154..b55520f81b9 100644 --- a/Distance_3/include/CGAL/Distance_3/Point_3_Triangle_3.h +++ b/Distance_3/include/CGAL/Distance_3/Point_3_Triangle_3.h @@ -158,9 +158,9 @@ squared_distance_to_triangle(const typename K::Point_3& pt, // Note that in the degenerate case, at most 2 edges cover the full triangle, // and only two distances could be used, but leaving 3 for the case of // inexact constructions as it might improve the accuracy. - typename K::FT d1 = internal::squared_distance(pt, segment(t2, t0), k); - typename K::FT d2 = internal::squared_distance(pt, segment(t1, t2), k); - typename K::FT d3 = internal::squared_distance(pt, segment(t0, t1), k); + typename K::FT d1 = sq_dist(pt, segment(t2, t0)); + typename K::FT d2 = sq_dist(pt, segment(t1, t2)); + typename K::FT d3 = sq_dist(pt, segment(t0, t1)); return (std::min)((std::min)(d1, d2), d3); }