From a494bf36784b9c4349843d24a90c9c5ff3e36199 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 10 Apr 2019 22:16:15 +0200 Subject: [PATCH] remove old example --- .../y_monotone_partition_with_info_2.cpp | 72 ------------------- 1 file changed, 72 deletions(-) delete mode 100644 Partition_2/examples/Partition_2/y_monotone_partition_with_info_2.cpp diff --git a/Partition_2/examples/Partition_2/y_monotone_partition_with_info_2.cpp b/Partition_2/examples/Partition_2/y_monotone_partition_with_info_2.cpp deleted file mode 100644 index fd9400f7282..00000000000 --- a/Partition_2/examples/Partition_2/y_monotone_partition_with_info_2.cpp +++ /dev/null @@ -1,72 +0,0 @@ -#include -#include -#include -#include -#include -#include - - -typedef CGAL::Exact_predicates_inexact_constructions_kernel K; -typedef CGAL::Surface_mesh Surface_mesh; -typedef boost::graph_traits::vertex_descriptor vertex_descriptor; -typedef CGAL::Pair_partition_traits_2 Traits; -typedef Traits::Point_2 Point_2; - -typedef Traits::Polygon_2 Polygon_2; -typedef std::list Polygon_list; - -/* - - v4 v2 - | \ /| - | \ / | - | v3 | - | | - v0-----v1 - - */ - -int main( ) -{ - - Surface_mesh sm; - - Traits traits; - - Polygon_2 polygon(traits); - - polygon.push_back(std::make_pair(K::Point_2(0,0), sm.add_vertex(K::Point_2(0,0)))); - polygon.push_back(std::make_pair(K::Point_2(2,0), sm.add_vertex(K::Point_2(2,0)))); - polygon.push_back(std::make_pair(K::Point_2(2,2), sm.add_vertex(K::Point_2(2,2)))); - polygon.push_back(std::make_pair(K::Point_2(1,1), sm.add_vertex(K::Point_2(1,1)))); - polygon.push_back(std::make_pair(K::Point_2(0,2), sm.add_vertex(K::Point_2(0,2)))); - - Polygon_list partition_polys; - - - - //CGAL::y_monotone_partition_2 - CGAL::greene_approx_convex_partition_2 - (polygon.vertices_begin(), - polygon.vertices_end(), - std::back_inserter(partition_polys), - traits); - - std::list::const_iterator poly_it; - for (poly_it = partition_polys.begin(); poly_it != partition_polys.end(); - poly_it++) - { - for(Point_2 p : poly_it->container()){ - std::cout << "[" << p.first << "| " << p.second << "] "; - } - std::cout << std::endl; - } -#if 1 - assert(CGAL::convex_partition_is_valid_2(polygon.vertices_begin(), - polygon.vertices_end(), - partition_polys.begin(), - partition_polys.end(), - traits)); -#endif - return 0; -}