From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- graphics/asymptote/Delaunay.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 graphics/asymptote/Delaunay.h (limited to 'graphics/asymptote/Delaunay.h') 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 +#include +#include +#include + +#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 + + -- cgit v1.2.3