CGAL 6.1 - Halfedge Data Structures
Loading...
Searching...
No Matches
HalfedgeDS/hds_prog_graph2.cpp
#include <CGAL/HalfedgeDS_min_items.h>
#include <CGAL/HalfedgeDS_default.h>
#include <CGAL/HalfedgeDS_decorator.h>
#include <cassert>
// 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();
assert( decorator.is_valid());
return 0;
}
The class CGAL::HalfedgeDS_items_decorator<HDS> provides additional functions for vertices,...
Definition: HalfedgeDS_decorator.h:54
The class HalfedgeDS_default is a model for the HalfedgeDS concept.
Definition: HalfedgeDS_default.h:36
The class HalfedgeDS_halfedge_base is a model of the HalfedgeDSHalfedge concept.
Definition: HalfedgeDS_halfedge_base.h:72
The class HalfedgeDS_min_items is a model of the HalfedgeDSItems concept.
Definition: HalfedgeDS_min_items.h:49
CGAL::Boolean_tag< false > Tag_false
CGAL::Boolean_tag< true > Tag_true