"Fossies" - the Fresh Open Source Software Archive

Member "asymptote-2.60/Delaunay.h" (6 Nov 2019, 384 Bytes) of package /linux/misc/asymptote-2.60.src.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "Delaunay.h" see the Fossies "Dox" file reference documentation.

    1 #ifndef DELAUNAY_H
    2 #define DELAUNAY_H
    3 
    4 #include <iostream>
    5 #include <cstdlib>
    6 #include <cmath>
    7 #include <cfloat>
    8 
    9 #include "common.h"
   10 
   11 struct ITRIANGLE{
   12   Int p1, p2, p3;
   13 };
   14 
   15 struct IEDGE{
   16   Int p1, p2;
   17 };
   18 
   19 struct XYZ{
   20   double p[2]; // {x,y}
   21   Int i;
   22 };
   23 
   24 Int Triangulate(Int nv, XYZ pxyz[], ITRIANGLE v[], Int &ntri,
   25                 bool presort=true, bool postsort=true);
   26 
   27 #endif
   28 
   29