Skip to content

Commit

Permalink
Use Epick_d
Browse files Browse the repository at this point in the history
  • Loading branch information
afabri committed Dec 12, 2024
1 parent 21e3a7c commit 23bf4ae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,13 @@ project( classical_Frechet_distance )

find_package(CGAL REQUIRED)


find_package(Eigen3 3.1.0 QUIET) #(requires 3.1.0 or greater)
include(CGAL_Eigen3_support)

create_single_source_cgal_program("Compute_classical_Frechet_distance_3.cpp")
create_single_source_cgal_program("Compute_classical_Frechet_distance_100.cpp")

if(TARGET CGAL::Eigen3_support)
create_single_source_cgal_program( "Compute_classical_Frechet_distance_100.cpp" )
target_link_libraries(Compute_classical_Frechet_distance_100 PUBLIC CGAL::Eigen3_support)
endif()
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#include <CGAL/Frechet_distance/internal/Frechet_classical.h>
#include <CGAL/Frechet_distance_traits_d.h>
#include <CGAL/Cartesian_d.h>
#include <CGAL/FPU.h>
#include <CGAL/Epick_d.h>

#include <iostream>
#include <sstream>
#include <fstream>

using Kernel = CGAL::Cartesian_d<double>;

using Kernel = CGAL::Epick_d<CGAL::Dimension_tag<100>>;
using Traits = CGAL::Frechet_distance_traits_d<Kernel>;
using Point = Traits::Point_d;
using Points = std::vector<Point>;
Expand All @@ -34,8 +34,6 @@ void readCurve(std::ifstream& curve_file, Points& points)

int main(int argc, char* argv[])
{
// TODO AF: why do we need this here?
CGAL::Protect_FPU_rounding<true> p;

double epsilon = 10e-10;

Expand Down

0 comments on commit 23bf4ae

Please sign in to comment.