This commit is contained in:
Sébastien Loriot 2024-11-15 15:30:45 +01:00
parent c01a96b01d
commit c1ec62ecfb
3 changed files with 0 additions and 98 deletions

View File

@ -73,13 +73,6 @@ auto toCurve(const PointRange& point_range, const Traits& traits)
}
else
{
#if 0
using Base_kernel = typename Kernel_traits<typename Traits::Point_d>::Kernel;
using AK = Kernel_d_interface<typename Base_kernel::AK>;
using EK = Kernel_d_interface<typename Base_kernel::EK>;
//using EK = typename CGAL::Frechet_distance_::internal::Get_exact_kernel<Kernel>::type;
#endif
using AT = Frechet_distance_traits<CGAL::Interval_nt_advanced, Traits::Dimension::value>;
using ET = Frechet_distance_traits<CGAL::Exact_rational, Traits::Dimension::value>;
using Filtered_traits = std::pair<AT,ET>;

View File

@ -1,71 +0,0 @@
// Copyright (c) 2024 Max-Planck-Institute Saarbruecken (Germany), GeometryFactory (France)
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
//
// $URL$
// $Id$
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
//
// Author(s) : André Nusser <anusser@mpi-inf.mpg.de>
// Marvin Künnemann <marvin@mpi-inf.mpg.de>
// Karl Bringmann <kbringma@mpi-inf.mpg.de>
// Andreas Fabri
// =============================================================================
#pragma once
#include <CGAL/license/Frechet_distance.h>
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Exact_rational.h>
#include <CGAL/STL_Extension/internal/Has_nested_type_Has_filtered_predicates_tag.h>
namespace CGAL {
namespace Frechet_distance_ {
namespace internal {
template <typename T>
struct Get_exact_kernel {
using K = typename T::Kernel;
static auto get_is_filtered()
{
if constexpr (::CGAL::internal::Has_nested_type_Has_filtered_predicates_tag<K>::value)
{
if constexpr (K::Has_filtered_predicates_tag::value) {
return std::true_type();
}
else
return std::false_type();
}
else
return std::false_type();
}
static constexpr bool is_filtered = decltype(get_is_filtered())::value;
static constexpr bool is_floating_point = std::is_floating_point_v<typename K::FT>;
static auto get_type()
{
if constexpr (is_filtered)
{
return typename K::Exact_kernel{};
}
else
{
if constexpr (is_floating_point)
return CGAL::Simple_cartesian<CGAL::Exact_rational>{};
else
return K{};
}
}
using type = decltype(get_type());
};
} } } // namespace CGAL::Frechet_distance_::internal

View File

@ -46,26 +46,6 @@ public:
Construct_cartesian_const_iterator_d construct_cartesian_const_iterator_d_object() const {
return Construct_cartesian_const_iterator_d();
}
/*
static constexpr bool is_filtered = CGAL::Frechet_distance_::internal::Get_exact_kernel<Kernel>::is_filtered;
static constexpr bool is_floating_point = CGAL::Frechet_distance_::internal::Get_exact_kernel<Kernel>::is_floating_point;
using distance_t = Interval_nt<false>;
using Approximate_kernel = Kernel_d_interface<Cartesian_base_d<distance_t,Dimension_tag<dimension>>>;
using Approximate_point = typename Approximate_kernel::Point_d;
*/
/*
using Exact_kernel = typename CGAL::Frechet_distance_::internal::Get_exact_kernel<Kernel>::type;
using Exact_point = typename Exact_kernel::Point_d;
using D2D = NT_converter<distance_t,double>;
using A2E = KernelD_converter<Approximate_kernel, Exact_kernel, Default, D2D>;
using FT2I = NT_converter<typename Kernel::FT,distance_t>;
using K2A = KernelD_converter<Kernel, Approximate_kernel, Default, FT2I>;
*/
};
} // end of namespace CGAL