/* Delaunay triangulation. */ /* See ** ** "Primitives for the Manipulation of General Subdivisions ** and the Computation of Voronoi Diagrams" ** ** L. Guibas, J. Stolfi, ACM TOG, April 1985 ** ** Implemented by Jim Roth (DEC CADM Advanced Group) on May 1986. ** Adapted by J. Stolfi on April 1993. ** See the copyright notice at the end of this file. */ #ifndef DELAUNAY_H #define DELAUNAY_H #include typedef struct { float x, y; } site_struct; /* Quad-edge data pointers: */ #define ORG(e) ((site_struct *) ODATA(e)) #define DEST(e) ((site_struct *) DDATA(e)) edge_ref delaunay_build(site_struct sites[], int nsites); #endif /* ** Copyright notice: ** ** Copyright 1996 Institute of Computing, Unicamp. ** ** Permission to use this software for any purpose is hereby granted, ** provided that any substantial copy or mechanically derived version ** of this file that is made available to other parties is accompanied ** by this copyright notice in full, and is distributed under these same ** terms. ** ** DISCLAIMER: This software is provided "as is" with no explicit or ** implicit warranty of any kind. Neither the authors nor their ** employers can be held responsible for any losses or damages ** that might be attributed to its use. ** ** End of copyright notice. */