From 425b25dc653fb9ff516fc11f352083d58dfd443f Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Fri, 17 May 2024 18:02:02 +0200 Subject: [PATCH] cleanup and timer --- .../Surface_mesh_parameterization/discrete_authalic.cpp | 9 ++++++++- .../Discrete_authalic_parameterizer_3.h | 1 - 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Surface_mesh_parameterization/examples/Surface_mesh_parameterization/discrete_authalic.cpp b/Surface_mesh_parameterization/examples/Surface_mesh_parameterization/discrete_authalic.cpp index 885c6d70ab70..912f8f1760aa 100644 --- a/Surface_mesh_parameterization/examples/Surface_mesh_parameterization/discrete_authalic.cpp +++ b/Surface_mesh_parameterization/examples/Surface_mesh_parameterization/discrete_authalic.cpp @@ -1,5 +1,7 @@ #include +#include + #include #include @@ -19,6 +21,7 @@ typedef CGAL::Simple_cartesian Kernel; typedef Kernel::Point_2 Point_2; typedef Kernel::Point_3 Point_3; typedef CGAL::Surface_mesh SurfaceMesh; +typedef CGAL::Timer Timer; typedef boost::graph_traits::halfedge_descriptor halfedge_descriptor; typedef boost::graph_traits::vertex_descriptor vertex_descriptor; @@ -47,8 +50,12 @@ int main(int argc, char** argv) typedef SMP::Circular_border_arc_length_parameterizer_3 Border_parameterizer; typedef SMP::Discrete_authalic_parameterizer_3 Parameterizer; - SMP::Error_code err = SMP::parameterize(sm, Parameterizer(), bhd, uv_map); + Timer t; + t.start(); + SMP::Error_code err = SMP::parameterize(sm, Parameterizer(), bhd, uv_map); + std::cout << t.time() << " sec." << std::endl; + if(err != SMP::OK) { std::cerr << "Error: " << SMP::get_error_message(err) << std::endl; return EXIT_FAILURE; diff --git a/Surface_mesh_parameterization/include/CGAL/Surface_mesh_parameterization/Discrete_authalic_parameterizer_3.h b/Surface_mesh_parameterization/include/CGAL/Surface_mesh_parameterization/Discrete_authalic_parameterizer_3.h index 847ee1f4e710..474e503164a3 100644 --- a/Surface_mesh_parameterization/include/CGAL/Surface_mesh_parameterization/Discrete_authalic_parameterizer_3.h +++ b/Surface_mesh_parameterization/include/CGAL/Surface_mesh_parameterization/Discrete_authalic_parameterizer_3.h @@ -23,7 +23,6 @@ #include -#include #if defined(CGAL_EIGEN3_ENABLED) #include