Update face graph wrapper

This commit is contained in:
Guillaume Damiand 2019-08-28 15:35:57 +02:00
parent 4d227e837e
commit 99d960c613
2 changed files with 25 additions and 2 deletions

View File

@ -803,6 +803,8 @@ namespace CGAL {
template<unsigned int dim>
bool is_opposite_exist(Dart_const_handle ADart) const
{ return !this->template is_free<dim>(ADart); }
bool is_border(Dart_handle& ADart)
{ return false; }// is_border is a method of Polygonal_schema
Dart_handle previous(Dart_handle ADart)
{ return this->template beta<0>(ADart); }

View File

@ -787,6 +787,9 @@ protected:
typedef Face_graph_wrapper<HEG> type;
typedef const Face_graph_wrapper<HEG> storage_type;
Get_map(const HEG& heg): m_map(heg) {}
static const HEG& get_mesh(const storage_type& amap)
{ return amap.get_fg(); }
storage_type m_map;
};
@ -797,7 +800,9 @@ protected:
typedef Map type;
typedef const Map& storage_type;
Get_map(const Map& heg): m_map(heg) {}
storage_type m_map;
static const Map& get_mesh(const storage_type& amap)
{ return amap; }
storage_type m_map;
};
template <unsigned int d, typename Refs, typename Items, typename Alloc,
@ -807,6 +812,8 @@ protected:
typedef Map type;
typedef const Map& storage_type;
Get_map(const Map& heg): m_map(heg) {}
static const Map& get_mesh(const storage_type& amap)
{ return amap; }
storage_type m_map;
};
@ -819,6 +826,8 @@ protected:
typedef LCC type;
typedef const LCC& storage_type;
Get_map(const LCC& heg): m_map(heg) {}
static const LCC& get_mesh(const storage_type& amap)
{ return amap; }
storage_type m_map;
};
@ -829,6 +838,8 @@ protected:
typedef Map type;
typedef const Map& storage_type;
Get_map(const Map& heg): m_map(heg) {}
static const Map& get_mesh(const storage_type& amap)
{ return amap; }
storage_type m_map;
};
@ -839,7 +850,9 @@ protected:
typedef Map type;
typedef const Map& storage_type;
Get_map(const Map& heg): m_map(heg) {}
storage_type m_map;
static const Map& get_mesh(const storage_type& amap)
{ return amap; }
storage_type m_map;
};
template <unsigned int d, typename Items, typename Alloc,
@ -849,6 +862,8 @@ protected:
typedef Map type;
typedef const Map& storage_type;
Get_map(const Map& heg): m_map(heg) {}
static const Map& get_mesh(const storage_type& amap)
{ return amap; }
storage_type m_map;
};
@ -859,6 +874,8 @@ protected:
typedef Map type;
typedef const Map& storage_type;
Get_map(const Map& heg): m_map(heg) {}
static const Map& get_mesh(const storage_type& amap)
{ return amap; }
storage_type m_map;
};
@ -872,6 +889,8 @@ protected:
typedef LCC type;
typedef const LCC& storage_type;
Get_map(const LCC& heg): m_map(heg) {}
static const LCC& get_mesh(const storage_type& amap)
{ return amap; }
storage_type m_map;
};
@ -885,6 +904,8 @@ protected:
typedef LCC type;
typedef const LCC& storage_type;
Get_map(const LCC& heg): m_map(heg) {}
static const LCC& get_mesh(const storage_type& amap)
{ return amap; }
storage_type m_map;
};