CGAL 6.0 - L Infinity Segment Delaunay Graphs
Loading...
Searching...
No Matches
Segment_Delaunay_graph_Linf_2/sdg-fast-sp-linf.cpp
// standard includes
#include <iostream>
#include <fstream>
#include <cassert>
// example that uses the filtered traits,
// the segment Delaunay graph and the spatial sorting
// choose the kernel
#include <CGAL/Simple_cartesian.h>
// typedefs for the traits and the algorithm
#include <CGAL/Segment_Delaunay_graph_Linf_2.h>
#include <CGAL/Segment_Delaunay_graph_Linf_filtered_traits_2.h>
int main()
{
std::ifstream ifs("data/sites.cin");
assert( ifs );
SDG2 sdg;
SDG2::Site_2 site;
std::vector<SDG2::Site_2> sites;
// read the sites
while ( ifs >> site ) {
sites.push_back(site);
}
//insert the sites all at once using spatial sorting to speed the insertion
sdg.insert( sites.begin(), sites.end(),CGAL::Tag_true() );
// validate the segment Delaunay graph
assert( sdg.is_valid(true, 1) );
return 0;
}
The class Segment_Delaunay_graph_Linf_2 represents the segment Delaunay graph under the metric (whic...
Definition: Segment_Delaunay_graph_Linf_2.h:34
The class Segment_Delaunay_graph_Linf_filtered_traits_without_intersections_2 provides a model for th...
Definition: Segment_Delaunay_graph_Linf_filtered_traits_2.h:63