From 87744264171a15070c4cffdedce03b4d1301ee2b Mon Sep 17 00:00:00 2001 From: Adam Wulkiewicz Date: Tue, 1 Apr 2014 22:39:23 +0200 Subject: [PATCH] [relate] rearrange updates of result in interrupt policy for A/A to show the handling pattern --- .../geometry/algorithms/detail/relate/areal_areal.hpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/boost/geometry/algorithms/detail/relate/areal_areal.hpp b/include/boost/geometry/algorithms/detail/relate/areal_areal.hpp index 794c0c54c..8aa1624b0 100644 --- a/include/boost/geometry/algorithms/detail/relate/areal_areal.hpp +++ b/include/boost/geometry/algorithms/detail/relate/areal_areal.hpp @@ -304,17 +304,22 @@ struct areal_areal overlay::operation_type op = turn.operations[Id].operation; + // NOTE: currently E^E is set without any checks before turns are gathered + // the lines commented out are redundant + if ( op == overlay::operation_intersection ) { update(m_result); update(m_result); update(m_result); + update(m_result); } else if ( op == overlay::operation_union ) { - update(m_result); - update(m_result); update(m_result); + update(m_result); + update(m_result); + //update(m_result); } else if ( op == overlay::operation_continue ) { @@ -324,8 +329,6 @@ struct areal_areal else if ( op == overlay::operation_blocked ) { update(m_result); - // NOTE: currently E^E is set without any checks before turns are gathered - // so currently the following line is redundant //update(m_result); } }