From 85aa5e638f4adc6992ce7411babb183957dcbf6c Mon Sep 17 00:00:00 2001 From: Abdelkrim Mebarki Date: Fri, 10 Mar 2006 14:04:42 +0000 Subject: [PATCH] bug fixed : eliminate duplicate seed points in the streamlines --- Stream_lines_2/include/CGAL/Stream_lines_2.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Stream_lines_2/include/CGAL/Stream_lines_2.h b/Stream_lines_2/include/CGAL/Stream_lines_2.h index d2434e50223..4dfb2e868fc 100644 --- a/Stream_lines_2/include/CGAL/Stream_lines_2.h +++ b/Stream_lines_2/include/CGAL/Stream_lines_2.h @@ -496,6 +496,8 @@ void Stream_lines_2::integrate_backward(const Vecto bool bEnd = false; FT dist; Point_2 new_point = Point_2 (stl.back().x(),stl.back().y()); + // to not have duplicate points in the streamline + stl.pop_back(); Vertex_handle m_Vertex_handle = insert_point(new_point, stl_vertices.back()->face(), dist,true); stl_vertices.push_back(m_Vertex_handle); stl.push_back(new_point);