CGAL 6.1.1 - 2D Convex Hulls and Extreme Points

Loading...
Searching...
No Matches
Convex_hull_2/ch_from_cin_to_cout.cpp
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/ch_graham_andrew.h>
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef K::Point_2 Point_2;
int main()
{
CGAL::IO::set_ascii_mode(std::cin);
CGAL::IO::set_ascii_mode(std::cout);
std::istream_iterator< Point_2 > in_start( std::cin );
std::istream_iterator< Point_2 > in_end;
std::ostream_iterator< Point_2 > out( std::cout, "\n" );
CGAL::ch_graham_andrew( in_start, in_end, out );
return 0;
}
CGAL::Exact_predicates_inexact_constructions_kernel
CGAL::ch_graham_andrew
OutputIterator ch_graham_andrew(InputIterator first, InputIterator beyond, OutputIterator result, const Traits &ch_traits=Default_traits)
generates the counterclockwise sequence of extreme points of the points in the range [first,...
CGAL::IO::set_ascii_mode
Mode set_ascii_mode(std::ios &s)