Skip to content

Commit

Permalink
Add forcing filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
afabri committed Dec 13, 2024
1 parent a8f8a3e commit 6360f72
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Frechet_distance/test/Frechet_distance/Frechet_distance_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ static double testFrechetDistanceNearNeighborsDS()

for (auto const& query: queries) {
auto result = ds.get_close_curves(curves[query.id],
query.distance); std::sort(result.begin(), result.end());
query.distance);
std::sort(result.begin(), result.end());

timer.start();
if (!std::equal(result.begin(), result.end(), query.expected_result.begin(), query.expected_result.end())) {
Expand Down Expand Up @@ -299,6 +300,15 @@ int main(int argc, char** argv)
std::cout << t1 << "\n";
}

if (test_set.empty() || test_set.count(6))
{
using Kernel = CGAL::Simple_cartesian<double>;
using Traits = CGAL::Frechet_distance_traits_3<Kernel>;
using Point = Kernel::Point_3;
std::cout <<"Simple_cartesian<double> in 3D (force filtering)\n";
double t1=Test_struct<Kernel, Traits, Point>::testFrechetDistance<true>();
std::cout << t1 << "\n";
}
// FIXME: CGAL::Ambient_dimension<TestPoint, TestKernel>::value not defined for Epick_d and Epeck_d
// How do I get the dimension for any kernel?

Expand Down

0 comments on commit 6360f72

Please sign in to comment.