From f822df3545f9fcc8a1add5e6f1fb914f26ce21b2 Mon Sep 17 00:00:00 2001 From: Barend Gehrels Date: Mon, 9 Jun 2014 12:16:16 +0200 Subject: [PATCH] [buffer] remove uu processing which is redundant --- .../buffer/buffered_piece_collection.hpp | 41 ------------------- 1 file changed, 41 deletions(-) diff --git a/include/boost/geometry/extensions/algorithms/buffer/buffered_piece_collection.hpp b/include/boost/geometry/extensions/algorithms/buffer/buffered_piece_collection.hpp index d6d81708b..92e2b90a5 100644 --- a/include/boost/geometry/extensions/algorithms/buffer/buffered_piece_collection.hpp +++ b/include/boost/geometry/extensions/algorithms/buffer/buffered_piece_collection.hpp @@ -340,35 +340,6 @@ struct buffered_piece_collection // The "get_left_turn" process indicates, if it is a u/u turn (both only applicable // for union, two separate turns), which is indicated in the map. If done so, set // the other to "none", it is part of an occupied situation and should not be followed. - inline void process_uu() - { - for (typename boost::range_iterator::type it = - boost::begin(m_turns); it != boost::end(m_turns); ++it) - { - if (it->both(detail::overlay::operation_union) - && (it->operations[0].include_in_occupation_map - || it->operations[1].include_in_occupation_map)) - { - bool set_to_none = false; - - // Avoid both turns of a u/u turn to be included. - if (! it->operations[0].include_in_occupation_map) - { - it->operations[0].operation = detail::overlay::operation_none; - set_to_none = true; - } - if (! it->operations[1].include_in_occupation_map) - { - it->operations[1].operation = detail::overlay::operation_none; - set_to_none = true; - } - if (set_to_none) - { - std::cout << "-"; - } - } - } - } inline void get_occupation() { @@ -684,7 +655,6 @@ struct buffered_piece_collection rescale_pieces(); get_occupation(); - process_uu(); classify_turns(); classify_inside(); @@ -863,17 +833,6 @@ struct buffered_piece_collection } - // inline void discard_uu_turns() - // { - // m_turns.erase - //( - // std::remove_if(boost::begin(m_turns), boost::end(m_turns), - // uu_turn()), - // boost::end(m_turns) - //); - - // } - inline void traverse() { typedef detail::overlay::traverse