CGAL 5.6 - 2D Voronoi Diagram Adaptor
Voronoi_diagram_2/draw_voronoi_diagram_2.cpp
// standard includes
#include <fstream>
// includes for drawing the Voronoi Diagram
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Voronoi_diagram_2.h>
#include <CGAL/Delaunay_triangulation_2.h>
#include <CGAL/Delaunay_triangulation_adaptation_traits_2.h>
#include <CGAL/Delaunay_triangulation_adaptation_policies_2.h>
#include <CGAL/draw_voronoi_diagram_2.h>
// typedefs for defining the adaptor
// typedef for the result type of the point location
typedef AT::Site_2 Site_2;
int main(int argc, char* argv[])
{
VD vd;
std::ifstream ifs((argc>1)?argv[1]:"data/data4.dt.cin");
assert(ifs);
Site_2 t;
while ( ifs >> t ) { vd.insert(t); }
ifs.close();
assert( vd.is_valid() );
return EXIT_SUCCESS;
}