diff options
author | skachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-01-19 13:31:58 +0000 |
---|---|---|
committer | skachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-01-19 13:31:58 +0000 |
commit | c783096ff58ac63f47d367e58ded30a83da40cd3 (patch) | |
tree | 7d36c0ba743ed540a60ca1c3b0774c0b06cdb668 /src/Alpha_complex | |
parent | ccb6ed4f7b2de208ba55b4c2eb06185c368f0b1c (diff) | |
parent | e3707de64413df06f83770a40ed8ba4ad9a69951 (diff) |
Merged trunk to relaxed_witness
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/relaxed-witness@1960 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 9d13c3b96706c4656f2ab04dd554a2a681d6b1f8
Diffstat (limited to 'src/Alpha_complex')
-rw-r--r-- | src/Alpha_complex/include/gudhi/Alpha_complex.h | 8 |
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); |