From f3e1bb671acbae38d85df2efeee44659ab653753 Mon Sep 17 00:00:00 2001 From: Menelaos Karavelas Date: Tue, 2 May 2006 11:28:46 +0000 Subject: [PATCH] - fixed bug in drawing routine of Parabola_segment_2; in somes cases the drawing routine was producing some points twice. Thanks to Rafael Torres for spotting the bug. --- Apollonius_graph_2/changes.txt | 5 +++++ Apollonius_graph_2/include/CGAL/Parabola_segment_2.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Apollonius_graph_2/changes.txt b/Apollonius_graph_2/changes.txt index f772d1e9858..4393f11882c 100644 --- a/Apollonius_graph_2/changes.txt +++ b/Apollonius_graph_2/changes.txt @@ -1,3 +1,8 @@ +2 May 2006: Menelaos Karavelas +- fixed bug in drawing routine of Parabola_segment_2; in somes cases + the drawing routine was producing some points twice. Thanks to + Rafael Torres for spotting the bug. + 1 May 2006: Menelaos Karavelas - fixed bug introduced in compute_points() in Parabola_2 class during the changes of March 9, 2006. Drawing of parabolas or parabolic arcs diff --git a/Apollonius_graph_2/include/CGAL/Parabola_segment_2.h b/Apollonius_graph_2/include/CGAL/Parabola_segment_2.h index bcdcc746006..0b158488475 100644 --- a/Apollonius_graph_2/include/CGAL/Parabola_segment_2.h +++ b/Apollonius_graph_2/include/CGAL/Parabola_segment_2.h @@ -83,7 +83,7 @@ public: int k; p.push_back( this->o ); - k = 1; + k = -1; tt = -this->STEP(); while ( CGAL::compare(tt, s0) == LARGER ) { p.insert( p.begin(), f(tt) );