Skip to content

Commit

Permalink
cleanup and timer
Browse files Browse the repository at this point in the history
  • Loading branch information
janetournois committed May 17, 2024
1 parent fc563b4 commit 425b25d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include <CGAL/Simple_cartesian.h>

#include <CGAL/Timer.h>

#include <CGAL/Surface_mesh.h>

#include <CGAL/Surface_mesh_parameterization/IO/File_off.h>
Expand All @@ -19,6 +21,7 @@ typedef CGAL::Simple_cartesian<double> Kernel;
typedef Kernel::Point_2 Point_2;
typedef Kernel::Point_3 Point_3;
typedef CGAL::Surface_mesh<Kernel::Point_3> SurfaceMesh;
typedef CGAL::Timer Timer;

typedef boost::graph_traits<SurfaceMesh>::halfedge_descriptor halfedge_descriptor;
typedef boost::graph_traits<SurfaceMesh>::vertex_descriptor vertex_descriptor;
Expand Down Expand Up @@ -47,8 +50,12 @@ int main(int argc, char** argv)
typedef SMP::Circular_border_arc_length_parameterizer_3<SurfaceMesh> Border_parameterizer;
typedef SMP::Discrete_authalic_parameterizer_3<SurfaceMesh, Border_parameterizer> 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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

#include <CGAL/Default.h>

#include <CGAL/Accelerate_solver_traits.h>

#if defined(CGAL_EIGEN3_ENABLED)
#include <CGAL/Eigen_solver_traits.h>
Expand Down

0 comments on commit 425b25d

Please sign in to comment.