Merge branch 'Aos_2-boundary_objects-efic' of github.com:efifogel/cgal into Aos_2-boundary_objects-efic

This commit is contained in:
Efi Fogel 2021-08-23 18:45:23 +03:00
commit 501af35f46
3 changed files with 10 additions and 3 deletions

View File

@ -1,10 +1,11 @@
//! \file examples/Arrangement_on_surface_2/bgl_dual_adapter.cpp
// Adapting the dual of an arrangement to a BGL graph.
#include <CGAL/config.h>
#include <boost/graph/breadth_first_search.hpp>
#include <boost/graph/visitors.hpp>
#include <CGAL/basic.h>
#include <CGAL/Arr_extended_dcel.h>
#include <CGAL/graph_traits_dual_arrangement_2.h>
#include <CGAL/Arr_face_index_map.h>

View File

@ -3,7 +3,7 @@
#include <vector>
#include <CGAL/basic.h>
#include <CGAL/config.h>
#include <boost/graph/dijkstra_shortest_paths.hpp>
#include <boost/property_map/vector_property_map.hpp>

View File

@ -28,9 +28,15 @@ typedef Traits_2::Point_2 Point_2;
template <typename Cmp_object>
struct Cmp {
Cmp<Cmp_object>& operator=(const Cmp<Cmp_object>&);
const Cmp_object& m_cmp_object;
Cmp(const Cmp&) = default;
Cmp(Cmp&&) = default;
Cmp<Cmp_object>& operator=(const Cmp&) = default;
Cmp<Cmp_object>& operator=(Cmp&&) = default;
Cmp(const Cmp_object& cmp_object) : m_cmp_object(cmp_object) {}
bool operator()(const Point_2& p1, const Point_2& p2) const
{ return (m_cmp_object(p1, p2) == CGAL::LARGER); }
};