debug compiling benchmark.cpp

This commit is contained in:
kanhuang 2013-08-07 11:39:19 -04:00
parent 0f4ac346a9
commit b2902dcb06
2 changed files with 6 additions and 5 deletions

View File

@ -187,8 +187,8 @@ public:
std::reverse(points.begin(), points.end());
CGAL::Visibility_2::report_while_handling_needles
<Simple_polygon_visibility_2>(geom_traits,
points,
q,
points,
out_arr);
CGAL_precondition(out_arr.number_of_isolated_vertices() == 0);
CGAL_precondition(s.size() == 0);
@ -268,8 +268,8 @@ public:
std::reverse(points.begin(), points.end());
CGAL::Visibility_2::report_while_handling_needles
<Simple_polygon_visibility_2>(geom_traits,
points,
q,
points,
out_arr);
CGAL_precondition(out_arr.number_of_isolated_vertices() == 0);
CGAL_precondition(s.size() == 0);

View File

@ -590,6 +590,7 @@ void benchmark(Visibility_2_fst &visibility_fst,
Query_choice choice) {
typedef typename Arrangement_2::Halfedge_handle Halfedge_handle;
typedef typename Arrangement_2::Halfedge_const_handle Halfedge_const_handle;
typedef typename Arrangement_2::Geometry_traits_2 Geometry_traits_2;
typedef typename Arrangement_2::Ccb_halfedge_circulator
Ccb_halfedge_circulator;
@ -614,7 +615,7 @@ void benchmark(Visibility_2_fst &visibility_fst,
Ccb_halfedge_circulator curr = circ;
do {
Halfedge_handle he = curr;
Halfedge_const_handle he = curr;
Point_2 curr_query_pt;
bool selected_query_pt = true;
switch (choice) {