#include <iostream>
#include <fstream>
#include <cassert>
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Segment_Delaunay_graph_Linf_hierarchy_2.h>
#include <CGAL/Segment_Delaunay_graph_Linf_filtered_traits_2.h>
int main( int argc, char *argv[] )
{
if ( ! (( argc == 1 ) || (argc == 2)) ) {
std::cout <<"usage: "<< argv[0] <<" [filename]\n";
}
std::ifstream ifs( (argc == 1) ? "data/sites.cin" : argv[1] );
assert( ifs );
SDG2 sdg;
SDG2::Site_2 site =
while ( ifs >> site ) {
sdg.insert(site);
}
assert( sdg.is_valid(true, 1) );
return 0;
}
This class is equivalent to the Segment_Delaunay_graph_hierarchy_2 class, but it uses Segment_Delauna...
Definition: Segment_Delaunay_graph_Linf_hierarchy_2.h:41
const CGAL::Origin ORIGIN
The class Segment_Delaunay_graph_Linf_filtered_traits_2 provides a model for the SegmentDelaunayGraph...
Definition: Segment_Delaunay_graph_Linf_filtered_traits_2.h:30