From 58685a167d755b43fce59d45a43428bdc8accb4a Mon Sep 17 00:00:00 2001 From: Luke Simonson Date: Mon, 7 Mar 2011 01:22:52 +0000 Subject: [PATCH] disabled 45-degree booleans optimization [SVN r69614] --- include/boost/polygon/detail/polygon_set_view.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/boost/polygon/detail/polygon_set_view.hpp b/include/boost/polygon/detail/polygon_set_view.hpp index 7b159a8..693acc4 100644 --- a/include/boost/polygon/detail/polygon_set_view.hpp +++ b/include/boost/polygon/detail/polygon_set_view.hpp @@ -14,7 +14,13 @@ namespace boost { namespace polygon{ inline void polygon_set_data::clean() const { if(dirty_) { polygon_45_set_data 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;