build_CGAL5
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Tue, 12 Jan 2021 23:55:53 +0000 (10:55 +1100)
committerDrew Parsons <dparsons@debian.org>
Tue, 12 Jan 2021 23:55:53 +0000 (10:55 +1100)
Gbp-Pq: Name build_CGAL5.patch

src/SurfaceReconstruction.cpp

index 6d4fbd7e6cbd02f91d40c3fccdaecfeb258bd0ad..c9568957cef4d9a16e47ab17c6e59b5e6d9d9dff 100644 (file)
@@ -21,7 +21,7 @@
 #include <dolfin/common/constants.h>
 
 #define CGAL_EIGEN3_ENABLED true
-#include <CGAL/trace.h>
+#include <CGAL/IO/trace.h>
 #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
 #include <CGAL/Surface_mesh_default_triangulation_3.h>
 #include <CGAL/make_surface_mesh.h>
@@ -230,7 +230,7 @@ void mshr::SurfaceReconstruction::reconstruct(const std::vector<double>& vertice
   }
   // Computes average spacing
   log(dolfin::TRACE, "Compute average spacing");
-  FT average_spacing = CGAL::compute_average_spacing<CGAL::Sequential_tag>(points.begin(), points.end(),
+  FT average_spacing = CGAL::compute_average_spacing<CGAL::Sequential_tag>(points,
                                                      6 /* knn = 1 ring */);
   // Gets one point inside the implicit surface
   // and computes implicit function bounding sphere radius.