update tg_nodes for usage with CGAL 4.5
This commit is contained in:
parent
d8d6f1ace1
commit
28edfb0fb8
2 changed files with 6 additions and 1 deletions
|
@ -81,9 +81,11 @@ bool TGNodes::get_geod_edge( const SGBucket& b, std::vector<SGGeod>& north, std:
|
|||
// Three dimensional queries is a bit overkill, but the code, although faster, is slightly more cumbersome
|
||||
|
||||
// get function for the property map - needed for cgal trait extension
|
||||
#if 0
|
||||
My_point_property_map::reference get(My_point_property_map, My_point_property_map::key_type p) {
|
||||
return boost::get<0>(p);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Build the k-d tree
|
||||
void TGNodes::init_spacial_query( void )
|
||||
|
|
|
@ -20,16 +20,19 @@ typedef Kernel::Point_2 Point;
|
|||
typedef boost::tuple<Point, double> Point_and_Elevation;
|
||||
|
||||
//definition of the property map
|
||||
#if 0
|
||||
struct My_point_property_map{
|
||||
typedef Point value_type;
|
||||
typedef const value_type& reference;
|
||||
typedef const Point_and_Elevation& key_type;
|
||||
typedef boost::readable_property_map_tag category;
|
||||
};
|
||||
#endif
|
||||
|
||||
//typedef CGAL::Search_traits_2<Kernel> Traits;
|
||||
typedef CGAL::Search_traits_2<Kernel> Traits_base;
|
||||
typedef CGAL::Search_traits_adapter<Point_and_Elevation, My_point_property_map, Traits_base> Traits;
|
||||
//typedef CGAL::Search_traits_adapter<Point_and_Elevation, My_point_property_map, Traits_base> Traits;
|
||||
typedef CGAL::Search_traits_adapter<Point_and_Elevation,CGAL::Nth_of_tuple_property_map<0, Point_and_Elevation>,Traits_base> Traits;
|
||||
|
||||
typedef CGAL::Fuzzy_iso_box<Traits> Fuzzy_bb;
|
||||
typedef CGAL::Kd_tree<Traits> Tree;
|
||||
|
|
Loading…
Add table
Reference in a new issue