Codebase list asymptote / 688050c8-00bf-45cb-bdde-85796de4622a/main Delaunay.h
688050c8-00bf-45cb-bdde-85796de4622a/main

Tree @688050c8-00bf-45cb-bdde-85796de4622a/main (Download .tar.gz)

Delaunay.h @688050c8-00bf-45cb-bdde-85796de4622a/mainraw · history · blame

#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