diff --git a/Weights/include/CGAL/Weights/tangent_weights.h b/Weights/include/CGAL/Weights/tangent_weights.h index 2ec910d67e2..7788a961218 100644 --- a/Weights/include/CGAL/Weights/tangent_weights.h +++ b/Weights/include/CGAL/Weights/tangent_weights.h @@ -259,6 +259,7 @@ typename GeomTraits::FT half_tangent_weight(const typename GeomTraits::Point_3& const GeomTraits& traits) { using FT = typename GeomTraits::FT; + using Vector_3 = typename GeomTraits::Vector_3; auto vector_3 = traits.construct_vector_3_object(); auto dot_product_3 = traits.compute_scalar_product_3_object(); diff --git a/Weights/test/Weights/include/wrappers.h b/Weights/test/Weights/include/wrappers.h index 2566a219a6c..94138e735df 100644 --- a/Weights/test/Weights/include/wrappers.h +++ b/Weights/test/Weights/include/wrappers.h @@ -70,10 +70,7 @@ struct Tangent_wrapper template FT weight_b(const Point& t, const Point& r, const Point& p, const Point& q) const { - return CGAL::Weights::half_tangent_weight(CGAL::Weights::internal::distance(r, q), - CGAL::Weights::internal::distance(t, q), - CGAL::Weights::internal::area(r, q, t), - CGAL::Weights::internal::scalar_product(r, q, t)) + + return CGAL::Weights::half_tangent_weight(r, q, t, Kernel()) + CGAL::Weights::half_tangent_weight(CGAL::Weights::internal::distance(r, q), CGAL::Weights::internal::distance(p, q), CGAL::Weights::internal::area(p, q, r),