From 8afa1bf87ca40c2cd423e65d5ffae3db1cc618a4 Mon Sep 17 00:00:00 2001 From: Ophir Setter Date: Wed, 28 Feb 2007 16:29:19 +0000 Subject: [PATCH] Point-location under ray bug fix --- .../CGAL/Arr_point_location/Arr_walk_along_line_pl_functions.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Arrangement_2/include/CGAL/Arr_point_location/Arr_walk_along_line_pl_functions.h b/Arrangement_2/include/CGAL/Arr_point_location/Arr_walk_along_line_pl_functions.h index 4155bec28d2..74f50d581db 100644 --- a/Arrangement_2/include/CGAL/Arr_point_location/Arr_walk_along_line_pl_functions.h +++ b/Arrangement_2/include/CGAL/Arr_point_location/Arr_walk_along_line_pl_functions.h @@ -650,8 +650,9 @@ _is_in_connected_component (const Point_2& p, closest_in_ccb = true; closest_to_target = (target_res == EQUAL); } - else + else if (! (closest_he->twin() == curr)) { + // The current curve is not the twin of the closest curve. // Compare with the vertically closest curve so far and detemine the // curve closest to p. We first check the case that the two curves // have a common endpoint (note that the two curves do not intersect