Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74613 - sandbox/gtl/boost/polygon
From: sydorchuk.andriy_at_[hidden]
Date: 2011-09-29 15:12:27


Author: asydorchuk
Date: 2011-09-29 15:12:26 EDT (Thu, 29 Sep 2011)
New Revision: 74613
URL: http://svn.boost.org/trac/boost/changeset/74613

Log:
Updates required for the directed_line_segment_set_data class usage.
Text files modified:
   sandbox/gtl/boost/polygon/directed_line_segment_data.hpp | 8 ++++++++
   sandbox/gtl/boost/polygon/directed_line_segment_set_data.hpp | 1 +
   sandbox/gtl/boost/polygon/polygon.hpp | 1 +
   3 files changed, 10 insertions(+), 0 deletions(-)

Modified: sandbox/gtl/boost/polygon/directed_line_segment_data.hpp
==============================================================================
--- sandbox/gtl/boost/polygon/directed_line_segment_data.hpp (original)
+++ sandbox/gtl/boost/polygon/directed_line_segment_data.hpp 2011-09-29 15:12:26 EDT (Thu, 29 Sep 2011)
@@ -43,7 +43,15 @@
       return points_[dir.to_int()];
     }
     inline point_type low() const { return points_[0]; }
+ inline point_type low(point_type low) {
+ points_[0] = low;
+ return *this;
+ }
     inline point_type high() const { return points_[1]; }
+ inline point_type high(point_type high) {
+ points_[1] = high;
+ return *this;
+ }
     inline bool operator==(const directed_line_segment_data& that) const {
       return low() == that.low() && high() == that.high(); }
     inline bool operator!=(const directed_line_segment_data& that) const {

Modified: sandbox/gtl/boost/polygon/directed_line_segment_set_data.hpp
==============================================================================
--- sandbox/gtl/boost/polygon/directed_line_segment_set_data.hpp (original)
+++ sandbox/gtl/boost/polygon/directed_line_segment_set_data.hpp 2011-09-29 15:12:26 EDT (Thu, 29 Sep 2011)
@@ -102,6 +102,7 @@
     inline bool dirty() const { return dirty_; }
 
     void clean() const {
+ if (!dirty_) return;
       typedef T Unit;
       typedef typename scanline_base<Unit>::Point Point;
       typedef typename scanline_base<Unit>::half_edge half_edge;

Modified: sandbox/gtl/boost/polygon/polygon.hpp
==============================================================================
--- sandbox/gtl/boost/polygon/polygon.hpp (original)
+++ sandbox/gtl/boost/polygon/polygon.hpp 2011-09-29 15:12:26 EDT (Thu, 29 Sep 2011)
@@ -89,6 +89,7 @@
 #include "polygon_set_concept.hpp"
 
 #include "directed_line_segment_data.hpp"
+#include "directed_line_segment_set_data.hpp"
 #include "directed_line_segment_traits.hpp"
 #include "directed_line_segment_concept.hpp"
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk