#include #include #include #include #include #include #include #include #include #include #define CGAL_OPTIMAL_BOUNDING_BOX_DEBUG_BENCHMARK typedef CGAL::Exact_predicates_inexact_constructions_kernel K; typedef K::Point_3 Point_3; typedef CGAL::Surface_mesh Surface_mesh; typedef typename boost::graph_traits::vertex_descriptor vertex_descriptor; void bench_finding_obb(const std::string filename, const int iter) { CGAL::Timer timer; std::vector points; std::vector > unused_faces; CGAL::IO::read_polygon_soup(filename, points, unused_faces); std::vector ch_points; std::array obb_points1; std::array obb_points2; double ch_time = 0.; double obb_time = 0.; double total_time_ch = 0.; double total_time_no_ch = 0.; for(int i=0; i 2) ? std::atoi(argv[2]) : 5; bench_finding_obb((argc > 1) ? argv[1] : "data/elephant.off", iter); return EXIT_SUCCESS; }