summaryrefslogtreecommitdiff
path: root/src/Alpha_complex/include/gudhi/Alpha_complex.h
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-01-20 15:33:53 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-01-20 15:33:53 +0000
commit3f451b963739a595d990be5517d386259ddb487f (patch)
tree4e6b8ccbf21c28c103effd9342f75907c89cf42a /src/Alpha_complex/include/gudhi/Alpha_complex.h
parentad6a64ad5a4f4121410250021eda0904eb9c718c (diff)
parentcbf1a50068a2c5dea6d732d40dfc66d34460d863 (diff)
Merge last trunk modifications in qt5 branch
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/qt5@1976 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 7f8c5b9443bf0996347fe459fe21c42a2fed0cca
Diffstat (limited to 'src/Alpha_complex/include/gudhi/Alpha_complex.h')
-rw-r--r--src/Alpha_complex/include/gudhi/Alpha_complex.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Alpha_complex/include/gudhi/Alpha_complex.h b/src/Alpha_complex/include/gudhi/Alpha_complex.h
index 9d5a9bad..1ff95c3d 100644
--- a/src/Alpha_complex/include/gudhi/Alpha_complex.h
+++ b/src/Alpha_complex/include/gudhi/Alpha_complex.h
@@ -193,17 +193,17 @@ class Alpha_complex {
triangulation_ = new Delaunay_triangulation(point_dimension(*first));
std::vector<Point_d> point_cloud(first, last);
-
+
// Creates a vector {0, 1, ..., N-1}
std::vector<std::ptrdiff_t> indices(boost::counting_iterator<std::ptrdiff_t>(0),
boost::counting_iterator<std::ptrdiff_t>(point_cloud.size()));
-
+
typedef boost::iterator_property_map<typename std::vector<Point_d>::iterator,
CGAL::Identity_property_map<std::ptrdiff_t>> Point_property_map;
typedef CGAL::Spatial_sort_traits_adapter_d<Kernel, Point_property_map> Search_traits_d;
-
+
CGAL::spatial_sort(indices.begin(), indices.end(), Search_traits_d(std::begin(point_cloud)));
-
+
typename Delaunay_triangulation::Full_cell_handle hint;
for (auto index : indices) {
typename Delaunay_triangulation::Vertex_handle pos = triangulation_->insert(point_cloud[index], hint);