From 665279a4d2e360bafce40f77db55b42c9219288c Mon Sep 17 00:00:00 2001 From: Panagiotis Cheilaris Date: Sun, 14 Apr 2013 15:42:54 +0200 Subject: [PATCH] whitespace and small changes in polychain Signed-off-by: Panagiotis Cheilaris --- .../include/CGAL/Polychain_2.h | 39 ++++++++----------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/Segment_Delaunay_graph_Linf_2/include/CGAL/Polychain_2.h b/Segment_Delaunay_graph_Linf_2/include/CGAL/Polychain_2.h index b65a4eb45e0..45616f59842 100644 --- a/Segment_Delaunay_graph_Linf_2/include/CGAL/Polychain_2.h +++ b/Segment_Delaunay_graph_Linf_2/include/CGAL/Polychain_2.h @@ -252,7 +252,8 @@ public: template std::ostream& -operator<<(std::ostream &os, const Polychainray_2& p) +operator<<(std::ostream &os, + const Polychainray_2& p) { typename Polychainray_2::Vertex_const_iterator i; @@ -366,13 +367,12 @@ public: operator-() const { // first reverse list of points of polychainline - //CGAL_SDG_DEBUG(std::cout << "debug pcl_reverse of " << *this << std::endl;); - std::vector reverse; unsigned int npts = this->size(); - CGAL_SDG_DEBUG(std::cout << "pcl_reverse npts=" << npts << std::endl;); + CGAL_SDG_DEBUG(std::cout << "pcl_reverse npts=" + << npts << std::endl;); reverse.resize(npts); @@ -409,8 +409,6 @@ public: reverse.end(), this->get_incoming()); - //CGAL_SDG_DEBUG(std::cout << "pcl_reverse res= " << pclreverse << std::endl;); - return pclreverse; } @@ -426,10 +424,9 @@ public: typedef typename Traits_P::Ray_2 Ray_2; typedef typename Traits_P::Segment_2 Segment_2; -//#if 0 - CGAL_SDG_DEBUG(std::cout << "debug first_intersection entering this=" - << *this << " pcl=" << pcl << std::endl;); -//#endif + CGAL_SDG_DEBUG(std::cout + << "debug first_intersection entering this=" + << *this << " pcl=" << pcl << std::endl;); typedef typename Polychainline_2:: @@ -439,17 +436,12 @@ public: typedef typename std::vector:: const_iterator SI; -#if 0 - CGAL_SDG_DEBUG(std::cout << "debug first_intersection thissize=" << this->size() - << " pclsize=" << pcl.size() << std::endl;); -#endif - CGAL_assertion( this->size() > 0 ); CGAL_assertion( pcl.size() > 0 ); #if 0 CGAL_SDG_DEBUG(std::cout << "debug first_intersection " - << "creating empty vectors" << std::endl;); + << "creating empty vectors" << std::endl;); #endif // create two empty vectors for storing the segments @@ -572,15 +564,16 @@ public: #endif result = CGAL::intersection(*sithis, *sipcl); - if (const Point_2 *ipoint = CGAL::object_cast(&result)) { + if (const Point_2 *ipoint = CGAL::object_cast(&result)) + { return *ipoint; } } #if 0 CGAL_SDG_DEBUG(std::cout << "debug first_intersection " - << "trying segment " << *sithis - << " with ray " << rayoutpcl << std::endl;); + << "trying segment " << *sithis + << " with ray " << rayoutpcl << std::endl;); #endif result = CGAL::intersection(*sithis, rayoutpcl); @@ -632,8 +625,9 @@ public: return *ipoint; } - CGAL_SDG_DEBUG(std::cout << "debug error: no intersection found for " - << "this=" << *this << " pcl=" << pcl << std::endl;); + CGAL_SDG_DEBUG(std::cout + << "debug error: no intersection found for " + << "this=" << *this << " pcl=" << pcl << std::endl;); CGAL_assertion(false); @@ -706,7 +700,8 @@ public: template std::ostream& -operator<<(std::ostream &os, const Polychainline_2& p) +operator<<(std::ostream &os, + const Polychainline_2& p) { typename Polychainline_2::Vertex_const_iterator i;