// file: examples/Arrangement_2/example11.C #include "short_names.h" #include #include #include #include #include #include #include #include #ifdef CGAL_USE_LEDA // #include #endif typedef CGAL::Quotient NT; typedef CGAL::Cartesian Kernel; typedef CGAL::Arr_segment_traits_2 Traits; typedef Traits::Curve Curve; typedef Traits::X_monotone_curve_2 X_monotone_curve_2; typedef CGAL::Arr_2_default_dcel Dcel; typedef CGAL::Arrangement_2 Arr; int main() { Arr arr; std::cout << "* * * Demonstrating a trivial use of IO functions"; std::cout << std::endl << std::endl; std::cin >> arr; std::cout << arr; std::cout << std::endl; std::cout << "* * * Presenting the use of verbose format"; std::cout << std::endl << std::endl;; CGAL::Arr_file_writer verbose_writer(std::cout, arr, true); CGAL::write_arr(arr, verbose_writer, std::cout); // printing to Postscript file. #ifdef CGAL_USE_LEDA // CGAL::Postscript_file_stream LPF(500, 500 ,"arr.ps"); // LPF.init(-3,3,-3); // LPF.set_line_width( 1); // LPF << arr; #endif return 0; }