File: Delaunay.h

package info (click to toggle)
asymptote 2.38-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 11,908 kB
  • ctags: 13,089
  • sloc: cpp: 60,286; ansic: 4,754; python: 3,909; sh: 3,363; perl: 1,563; lisp: 1,363; makefile: 606; yacc: 554; lex: 444
file content (29 lines) | stat: -rw-r--r-- 384 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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