Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69615 - branches/release/boost/polygon/detail
From: lucanus.j.simonson_at_[hidden]
Date: 2011-03-06 20:24:44


Author: ljsimons
Date: 2011-03-06 20:24:34 EST (Sun, 06 Mar 2011)
New Revision: 69615
URL: http://svn.boost.org/trac/boost/changeset/69615

Log:
disabled 45-degree booleans optimization
Text files modified:
   branches/release/boost/polygon/detail/polygon_set_view.hpp | 8 +++++++-
   1 files changed, 7 insertions(+), 1 deletions(-)

Modified: branches/release/boost/polygon/detail/polygon_set_view.hpp
==============================================================================
--- branches/release/boost/polygon/detail/polygon_set_view.hpp (original)
+++ branches/release/boost/polygon/detail/polygon_set_view.hpp 2011-03-06 20:24:34 EST (Sun, 06 Mar 2011)
@@ -14,7 +14,13 @@
   inline void polygon_set_data<coordinate_type>::clean() const {
     if(dirty_) {
       polygon_45_set_data<coordinate_type> tmp;
- if(downcast(tmp) ) {
+ //very important:
+ //the 45 degree algorithm does not satisfy
+ //the precondition of arbitrary polygon formation
+ //that vertices be "linearly consistent"
+ //therefore it doesn't work to fall back on 45-degree
+ //booleans for arbitrary angle polygons
+ if(0) { //downcast(tmp) ) {
         tmp.clean();
         data_.clear();
         is_45_ = true;


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