CGAL 5.1 - Halfedge Data Structures
HalfedgeDS/hds_prog_graph2.cpp
#include <CGAL/HalfedgeDS_min_items.h>
#include <CGAL/HalfedgeDS_default.h>
#include <CGAL/HalfedgeDS_decorator.h>
// An items type using a halfedge with previous-pointer.
struct My_items : public CGAL::HalfedgeDS_min_items {
template <class Refs, class Traits>
struct Halfedge_wrapper {
CGAL::Tag_true, // previous pointer selected.
CGAL::Tag_false, // pointer to vertex not selected.
CGAL::Tag_false // pointer to face not selected.
> Halfedge;
};
};
// no traits needed, argument can be arbitrary dummy.
int main() {
HDS hds;
Decorator decorator(hds);
decorator.create_loop();
CGAL_assertion( decorator.is_valid());
return 0;
}
CGAL::Tag_false
CGAL::Boolean_tag< false > Tag_false
CGAL::Boolean_tag
CGAL::Tag_true
CGAL::Boolean_tag< true > Tag_true
CGAL::HalfedgeDS_decorator
Definition: HalfedgeDS_decorator.h:54
CGAL::HalfedgeDS_halfedge_base
Definition: HalfedgeDS_halfedge_base.h:72
CGAL::HalfedgeDS_min_items
Definition: HalfedgeDS_min_items.h:49
CGAL::HalfedgeDS_default
Definition: HalfedgeDS_default.h:34