30 #ifndef GRALE_TRIANGULATION_H
32 #define GRALE_TRIANGULATION_H
34 #include "graleconfig.h"
36 #include <errut/errorbase.h>
48 TriangleIndices(
int a,
int b,
int c) { m_index[0] = a; m_index[1] = b; m_index[2] = c; }
49 int getIndex(
int i)
const {
return m_index[i]; }
61 bool create(
const std::vector<
Vector2D<double> > &points,
const std::vector<std::pair<int, int> > &constraints);
62 void getTriangles(std::list<TriangleIndices> &t)
const;
64 std::list<TriangleIndices> m_triangles;
69 #endif // GRALE_TRIANGULATION_H