From 7185573274c3776a9cc06c14547af4fbf355a59b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Thu, 20 Jun 2013 19:19:48 +0200 Subject: [PATCH] use the new primitive --- .../demo/Polyhedron/Polyhedron_demo_poisson_plugin_impl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Polyhedron/demo/Polyhedron/Polyhedron_demo_poisson_plugin_impl.cpp b/Polyhedron/demo/Polyhedron/Polyhedron_demo_poisson_plugin_impl.cpp index c5e9d1adf59..b2f75cd4644 100644 --- a/Polyhedron/demo/Polyhedron/Polyhedron_demo_poisson_plugin_impl.cpp +++ b/Polyhedron/demo/Polyhedron/Polyhedron_demo_poisson_plugin_impl.cpp @@ -7,7 +7,7 @@ // CGAL #include // must be included before kernel #include -#include +#include #include #include #include @@ -39,7 +39,7 @@ typedef CGAL::Surface_mesh_complex_2_in_triangulation_3 C2t3; typedef CGAL::Implicit_surface_3 Surface_3; // AABB tree -typedef CGAL::AABB_polyhedron_triangle_primitive Primitive; +typedef CGAL::AABB_FaceGraph_triangle_primitive Primitive; typedef CGAL::AABB_traits AABB_traits; typedef CGAL::AABB_tree AABB_tree; @@ -212,7 +212,7 @@ Polyhedron* poisson_reconstruct(const Point_set& points, // Constructs AABB tree and computes internal KD-tree // data structure to accelerate distance queries - AABB_tree tree(output_mesh->facets_begin(), output_mesh->facets_end()); + AABB_tree tree(output_mesh->facets_begin(), output_mesh->facets_end(), *output_mesh); tree.accelerate_distance_queries(); // Computes distance from each input point to reconstructed mesh