mirror of https://github.com/CGAL/cgal
bug fixed : eliminate duplicate seed points in the streamlines
This commit is contained in:
parent
c098539a51
commit
85aa5e638f
|
|
@ -496,6 +496,8 @@ void Stream_lines_2<VectorField_2, Integrator_2>::integrate_backward(const Vecto
|
||||||
bool bEnd = false;
|
bool bEnd = false;
|
||||||
FT dist;
|
FT dist;
|
||||||
Point_2 new_point = Point_2 (stl.back().x(),stl.back().y());
|
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);
|
Vertex_handle m_Vertex_handle = insert_point(new_point, stl_vertices.back()->face(), dist,true);
|
||||||
stl_vertices.push_back(m_Vertex_handle);
|
stl_vertices.push_back(m_Vertex_handle);
|
||||||
stl.push_back(new_point);
|
stl.push_back(new_point);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue