summaryrefslogtreecommitdiff
path: root/graphics/asymptote/Delaunay.h
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /graphics/asymptote/Delaunay.h
Initial commit
Diffstat (limited to 'graphics/asymptote/Delaunay.h')
-rw-r--r--graphics/asymptote/Delaunay.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/graphics/asymptote/Delaunay.h b/graphics/asymptote/Delaunay.h
new file mode 100644
index 0000000000..bc68565ef8
--- /dev/null
+++ b/graphics/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
+
+