diff options
author | salinasd <salinasd@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2015-01-27 15:09:04 +0000 |
---|---|---|
committer | salinasd <salinasd@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2015-01-27 15:09:04 +0000 |
commit | e8e889c52c96a3055a1237c389186cb08b0f6708 (patch) | |
tree | c7879f69d52a9cdde35f38ac2718ec9d8ce7815a /src/GudhUI/utils/K_nearest_builder.h | |
parent | d7a3c90ef611b1c104b6a4ee900b56bf39d56cf5 (diff) |
critical poitns
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@432 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 27e660f593f25a00cbd8b1794ed83bb76fd34eea
Diffstat (limited to 'src/GudhUI/utils/K_nearest_builder.h')
-rw-r--r-- | src/GudhUI/utils/K_nearest_builder.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/GudhUI/utils/K_nearest_builder.h b/src/GudhUI/utils/K_nearest_builder.h index f31e6c0c..b65a79e0 100644 --- a/src/GudhUI/utils/K_nearest_builder.h +++ b/src/GudhUI/utils/K_nearest_builder.h @@ -27,7 +27,7 @@ private: typedef Geometry_trait Kernel; typedef Point Point_d;
- typedef boost::tuple<Point_d, int> Point_d_with_id;
+ typedef boost::tuple<Point_d, unsigned> Point_d_with_id;
typedef CGAL::Search_traits_d<Kernel> Traits_base;
typedef CGAL::Search_traits_adapter<Point_d_with_id, CGAL::Nth_of_tuple_property_map<0, Point_d_with_id>, Traits_base> Traits;
typedef CGAL::Orthogonal_k_neighbor_search<Traits> Neighbor_search;
@@ -64,10 +64,11 @@ private: Tree tree(points_with_id.begin(),points_with_id.end()); + typedef typename SkBlComplex::Vertex_handle Vertex_handle; for (auto p : complex_.vertex_range()){ Neighbor_search search(tree, complex_.point(p),k+1); for(auto it = ++search.begin(); it != search.end(); ++it){ - auto q = boost::get<1>(it->first); + Vertex_handle q(boost::get<1>(it->first)); if (p != q && complex_.contains_vertex(p) && complex_.contains_vertex(q)) complex_.add_edge(p,q); } |