This commit is contained in:
Baruch Zukerman 2006-01-30 12:55:25 +00:00
parent 666b2ea949
commit 0334edb00c
4 changed files with 14 additions and 13 deletions

View File

@ -1,6 +1,4 @@
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <CGAL/Simple_cartesian.h>
@ -15,8 +13,6 @@
#include <CGAL/iterator.h>
typedef CGAL::Quotient<CGAL::MP_Float> Number_type;
typedef CGAL::Simple_cartesian<Number_type> Kernel;

View File

@ -1,5 +1,5 @@
input files for boolean operations test suites
----------------------------------------------
input files for test_bop (test boolean operations on two polygons)
------------------------------------------------------------------
strcutre of file:
----------------
@ -36,11 +36,10 @@ DIFF_RES # the same as in intersection
SYMM_DIFF_RES # the same as in intersection
# ~P1 (complement of p1)
COMP_RES # if P1 is Polygon_2, COMP_RES = Polygon_with_holes_2
#else COMP_RES is the same as in intersection result
COMP_RES # the same as in intersection
# ~P2 (complement of p2)
COMP_RES # the same as ~P1
COMP_RES # the same as in intersection
example:
@ -116,6 +115,7 @@ example:
0
# complement of P1
1
0
1
3

View File

@ -341,10 +341,6 @@ bool test(std::istream& inp,
}
ps.clear();
return true;
}

View File

@ -12,6 +12,8 @@
#include <CGAL/General_polygon_set_2.h>
#include <CGAL/Polygon_set_2.h>
#include <CGAL/Arr_non_caching_segment_traits_2.h>
//typedef CGAL::Quotient<CGAL::MP_Float> Number_type;
typedef int Number_type;
@ -24,6 +26,12 @@ typedef CGAL::Arr_segment_traits_2<Kernel> Arr_traits;
typedef CGAL::Gps_traits_2<Arr_traits> General_traits;
typedef CGAL::General_polygon_set_2<General_traits> Gps;
typedef CGAL::Arr_non_caching_segment_traits_2<Kernel> Nc_traits;
typedef CGAL::Gps_segment_traits_2<Kernel,
std::vector<Kernel::Point_2>,
Nc_traits> Traits_non_caching;
typedef CGAL::General_polygon_set_2<Traits_non_caching> Gps_non_caching;
template <class GPS>
void test()
{
@ -224,6 +232,7 @@ void test()
{
test<Gps>();
test<Ps>();
test<Gps_non_caching>();
return (0);
}