cgal/Packages/Mesh_2/include/CGAL/Mesh_face_base_2.h

45 lines
1.1 KiB
C++

#include <CGAL/Constrained_triangulation_face_base_2.h>
namespace CGAL {
template <class Gt,
class Fb = Constrained_triangulation_face_base_2<Gt> >
class Mesh_face_base_2 : public Fb
{
public:
typedef Gt Geom_traits;
typedef Constrained_triangulation_face_base_2<Gt> CTFb;
template < typename TDS2 >
struct Rebind_TDS {
typedef typename CTFb::template Rebind_TDS<TDS2>::Other Fb2;
typedef Mesh_face_base_2<Gt,Fb2> Other;
};
protected:
bool marked;
public:
Mesh_face_base_2(): Fb(), marked(false) {};
Mesh_face_base_2(void* v0, void* v1, void* v2)
: Fb(v0,v1,v2), marked(false) {};
Mesh_face_base_2(void* v0, void* v1, void* v2,
void* n0, void* n1, void* n2)
: Fb(v0,v1,v2,n0,n1,n2), marked(false) {};
Mesh_face_base_2(void* v0, void* v1, void* v2,
void* n0, void* n1, void* n2,
bool c0, bool c1, bool c2 )
: Fb(v0,v1,v2,n0,n1,n2,c0,c1,c2), marked(false) {};
inline
bool is_marked() const { return marked; };
inline
void set_marked(const bool b) { marked=b; };
};
}; // namespace CGAL