diff --git a/.gitattributes b/.gitattributes index f0aab4118a6..90335244a41 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1427,6 +1427,7 @@ Convex_decomposition_3/test/Convex_decomposition_3/star.nef3 -text Convex_hull_2/demo/Convex_hull_2/help/index.html svneol=native#text/html Convex_hull_2/doc_tex/Convex_hull_2/convex_hull.png -text Convex_hull_2/doc_tex/Convex_hull_2/saarhull.png -text svneol=unset#image/png +Convex_hull_2/test/Convex_hull_2/ch2_projection_3.cpp -text Convex_hull_3/benchmark/Convex_hull_3/compare_different_approach.cpp -text Convex_hull_3/benchmark/Convex_hull_3/is_on_positive_side.cpp -text Convex_hull_3/demo/Convex_hull_3/CMakeLists.txt -text diff --git a/Convex_hull_2/test/Convex_hull_2/ch2_projection_3.cpp b/Convex_hull_2/test/Convex_hull_2/ch2_projection_3.cpp new file mode 100644 index 00000000000..fa5859fc22c --- /dev/null +++ b/Convex_hull_2/test/Convex_hull_2/ch2_projection_3.cpp @@ -0,0 +1,25 @@ +#include +#include +#include +#include +#include + +typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel; +typedef CGAL::Projection_traits_xy_3 Traits; +typedef Traits::Point_2 Point_2; + +int main(){ + std::vector points; + std::ifstream input("data/CD500"); + + double x,y; + while (input >> x >> y){ + points.push_back(Point_2(x,y,3.)); + } + + std::vector ch2; + + CGAL::convex_hull_2(points.begin(),points.end(),std::back_inserter(ch2),Traits()); + + std::cout << ch2.size() << std::endl; +}