From 610af56d2dae48ee97ee21ce5d41cadf28e2cfc3 Mon Sep 17 00:00:00 2001 From: Panagiotis Cheilaris Date: Wed, 7 Aug 2013 11:16:09 +0300 Subject: [PATCH] assertions and debugging for endpoints Signed-off-by: Panagiotis Cheilaris --- .../Voronoi_vertex_sqrt_field_new_C2.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Segment_Delaunay_graph_Linf_2/include/CGAL/Segment_Delaunay_graph_Linf_2/Voronoi_vertex_sqrt_field_new_C2.h b/Segment_Delaunay_graph_Linf_2/include/CGAL/Segment_Delaunay_graph_Linf_2/Voronoi_vertex_sqrt_field_new_C2.h index 95b19885c34..58c539a3895 100644 --- a/Segment_Delaunay_graph_Linf_2/include/CGAL/Segment_Delaunay_graph_Linf_2/Voronoi_vertex_sqrt_field_new_C2.h +++ b/Segment_Delaunay_graph_Linf_2/include/CGAL/Segment_Delaunay_graph_Linf_2/Voronoi_vertex_sqrt_field_new_C2.h @@ -1895,6 +1895,9 @@ private: (is_t_endp_of_q and is_p_endp_of_r) or (is_t_endp_of_r and is_p_endp_of_q) ; + CGAL_SDG_DEBUG( std::cout << "debug pt_endps_of_diff_qr = " + pt_endps_of_diff_qr << std::endl;); + if (p.is_point()) { pref = p.point(); diffdvpx = vv.x() - pref.x(); @@ -1941,6 +1944,7 @@ private: return ZERO; } + CGAL_assertion(p.is_point()); CGAL_SDG_DEBUG(std::cout << "debug diffdvpx=" << diffdvpx << " diffdvpy=" << diffdvpy << std::endl;); @@ -2099,10 +2103,13 @@ private: } } } // end of pqsamey case + // check for case where p or q are endpoints of r + if (is_p_endp_of_r or is_q_endp_of_r) { + CGAL_SDG_DEBUG(std::cout << "debug per=" << is_p_endp_of_r + << " qer=" << is_q_endp_of_r << std::endl;); + } } // end of case: pqsamex or pqsamey - // check for case where p or q are endpoints of r - - } + } // end of non-hv segment r case CGAL_assertion(num_same_quadrant_as_t == 0); @@ -2115,7 +2122,7 @@ private: //return CGAL::compare(d_fine, radius_fine); - } + } // end of case of crude == ZERO } //--------------------------------------------------------------------------