summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/Delaunay.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/Delaunay.h')
-rw-r--r--Build/source/utils/asymptote/Delaunay.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/Delaunay.h b/Build/source/utils/asymptote/Delaunay.h
new file mode 100644
index 00000000000..bc68565ef84
--- /dev/null
+++ b/Build/source/utils/asymptote/Delaunay.h
@@ -0,0 +1,29 @@
+#ifndef DELAUNAY_H
+#define DELAUNAY_H
+
+#include <iostream>
+#include <cstdlib>
+#include <cmath>
+#include <cfloat>
+
+#include "common.h"
+
+struct ITRIANGLE{
+ Int p1, p2, p3;
+};
+
+struct IEDGE{
+ Int p1, p2;
+};
+
+struct XYZ{
+ double p[2]; // {x,y}
+ Int i;
+};
+
+Int Triangulate(Int nv, XYZ pxyz[], ITRIANGLE v[], Int &ntri,
+ bool presort=true, bool postsort=true);
+
+#endif
+
+