Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] problem with using Search_traits_vertex_handle_3

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] problem with using Search_traits_vertex_handle_3


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] problem with using Search_traits_vertex_handle_3
  • Date: Thu, 22 Jul 2010 08:45:14 +0200

Yifei Li wrote:
Hi folks,

I have a set of points and for each point p, I need to find all the neighbouring points in the ball centered at p with radius r. Also I need to know the indices for those neighbouring points, which is why I use Search_traits_vertex_handle_3

Here is how I do it:

typedef CGAL::Search_traits_vertex_handle_3<unsigned int> Traits;

Tree tree(V.begin(), V.end()); // Kd tree

Fuzzy_sphere fs(Point(10.0,10.0,10.0,0), 15, 0);

tree.search(std::ostream_iterator<Point>(std::cout, "\n"), fs);

However, I got the following compile error:

opt/local/include/CGAL/Fuzzy_sphere.h:50: error: ‘struct CGAL::Point_vertex_handle_3<unsigned int>’ has no member named ‘dimension’

Any help is appreciated.

Yifei


Why are you using Fuzzy_sphere which is a d-dimensional sphere?
What about using Sphere_3 instead?

S.



Archive powered by MHonArc 2.6.16.

Top of Page