Subject: CGAL users discussion list
List archive
- 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,Why are you using Fuzzy_sphere which is a d-dimensional sphere?
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
What about using Sphere_3 instead?
S.
- [cgal-discuss] problem with using Search_traits_vertex_handle_3, Yifei Li, 07/21/2010
- Re: [cgal-discuss] problem with using Search_traits_vertex_handle_3, Sebastien Loriot (GeometryFactory), 07/22/2010
- Re: [cgal-discuss] problem with using Search_traits_vertex_handle_3, Yifei Li, 07/22/2010
- Re: [cgal-discuss] problem with using Search_traits_vertex_handle_3, Sebastien Loriot (GeometryFactory), 07/22/2010
- Re: [cgal-discuss] problem with using Search_traits_vertex_handle_3, Yifei Li, 07/22/2010
- Re: [cgal-discuss] problem with using Search_traits_vertex_handle_3, Sebastien Loriot (GeometryFactory), 07/22/2010
- Re: [cgal-discuss] problem with using Search_traits_vertex_handle_3, Yifei Li, 07/22/2010
- Re: [cgal-discuss] problem with using Search_traits_vertex_handle_3, Sebastien Loriot (GeometryFactory), 07/22/2010
- Re: [cgal-discuss] problem with using Search_traits_vertex_handle_3, Yifei Li, 07/22/2010
- Re: [cgal-discuss] problem with using Search_traits_vertex_handle_3, Sebastien Loriot (GeometryFactory), 07/22/2010
Archive powered by MHonArc 2.6.16.