Update existing benchmarks to use new syntax

This commit is contained in:
Jackson Campolattaro 2020-11-03 12:45:20 -05:00
parent f30b1e5c06
commit a62f868d9c
2 changed files with 5 additions and 3 deletions

View File

@ -14,8 +14,9 @@
typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel;
typedef Kernel::Point_3 Point;
typedef CGAL::Point_set_3<Point> Point_set;
typedef Point_set::Point_map Point_map;
typedef CGAL::Octree::Octree<Point_set, typename Point_set::Point_map> Octree;
typedef CGAL::Octree<Kernel, Point_set, Point_map> Octree;
using std::chrono::high_resolution_clock;
using std::chrono::duration_cast;

View File

@ -14,8 +14,9 @@
typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel;
typedef Kernel::Point_3 Point;
typedef CGAL::Point_set_3<Point> Point_set;
typedef Point_set::Point_map Point_map;
typedef CGAL::Octree::Octree<Point_set, typename Point_set::Point_map> Octree;
typedef CGAL::Octree<Kernel, Point_set, Point_map> Octree;
using std::chrono::high_resolution_clock;
using std::chrono::duration_cast;
@ -48,7 +49,7 @@ int main(int argc, char **argv) {
// Find the nearest point to the search point
std::vector<Point> nearest_neighbors;
octree.nearest_k_neighbors(search_point, 10, std::back_inserter(nearest_neighbors));
octree.nearest_neighbors(search_point, 10, std::back_inserter(nearest_neighbors));
// End the timer
auto end = high_resolution_clock::now();