Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] Re: Samples Spatial Searching, combining Custom distance with property maps
Chronological Thread
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Re: Samples Spatial Searching, combining Custom distance with property maps
- Date: Thu, 08 Nov 2012 15:52:27 +0100
- Organization: GeometryFactory
Indeed, it seems that I forgot to update the manual (Distance_adapter
is a better name).
Thanks, it will be fixed in the next release.
Sebastien.
On 11/08/2012 03:47 PM, Daniel S. wrote:
Hello Sebastien,
first of all thanks for your answer. Yes you are right the
"Distance_for_point_adapter" is what im looking for.
But...
As stated in the [3] I need to include:
#include<CGAL/Search_traits_adapter.h>
In this h file, there is no Distance_for_point_adapter definied! There is
only a Distance_adapter. I think there was a rename prozedure and the manual
wasn't updated. With the distance_adapter everything work fine. Or am I
missing smth ?
For all Users facing a simular problem, here are the typedefs that worked
for me:
typedef CGAL::Search_traits<double, Point, const double*,
Construct_coord_iterator> Traits_base;
typedef
CGAL::Search_traits_adapter<Point_and_int,My_point_property_map,Traits_base>
Traits;
typedef CGAL::Distance_adapter<Point_and_int,My_point_property_map,Distance>
Distance_base;
typedef CGAL::K_neighbor_search<Traits,Distance_base>
K_neighbor_search;
typedef K_neighbor_search::Tree
Tree;
typedef K_neighbor_search::Distance
DistanceD;
Greets from Germany
Daniel
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Samples-Spatial-Searching-combining-Custom-distance-with-property-maps-tp4656160p4656185.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Samples Spatial Searching, combining Custom distance with property maps, Daniel S., 11/06/2012
- Re: [cgal-discuss] Samples Spatial Searching, combining Custom distance with property maps, Sebastien Loriot (GeometryFactory), 11/08/2012
- [cgal-discuss] Re: Samples Spatial Searching, combining Custom distance with property maps, Daniel S., 11/08/2012
- Re: [cgal-discuss] Re: Samples Spatial Searching, combining Custom distance with property maps, Sebastien Loriot (GeometryFactory), 11/08/2012
- [cgal-discuss] Re: Samples Spatial Searching, combining Custom distance with property maps, Daniel S., 11/12/2012
- Re: [cgal-discuss] Re: Samples Spatial Searching, combining Custom distance with property maps, Sebastien Loriot (GeometryFactory), 11/12/2012
- [cgal-discuss] Re: Samples Spatial Searching, combining Custom distance with property maps, Daniel S., 11/12/2012
- Re: [cgal-discuss] Re: Samples Spatial Searching, combining Custom distance with property maps, Sebastien Loriot (GeometryFactory), 11/08/2012
- [cgal-discuss] Re: Samples Spatial Searching, combining Custom distance with property maps, Daniel S., 11/08/2012
- Re: [cgal-discuss] Samples Spatial Searching, combining Custom distance with property maps, Sebastien Loriot (GeometryFactory), 11/08/2012
Archive powered by MHonArc 2.6.18.