1 #ifndef DELAUNAY_H
2 #define DELAUNAY_H
3 
4 #include <iostream>
5 #include <cstdlib>
6 #include <cmath>
7 #include <cfloat>
8 
9 #include "common.h"
10 
11 struct ITRIANGLE{
12   Int p1, p2, p3;
13 };
14 
15 struct IEDGE{
16   Int p1, p2;
17 };
18 
19 struct XYZ{
20   double p[2]; // {x,y}
21   Int i;
22 };
23 
24 Int Triangulate(Int nv, XYZ pxyz[], ITRIANGLE v[], Int &ntri,
25                 bool presort=true, bool postsort=true);
26 
27 #endif
28 
29 
30