From 0ecc80a10a8e09f77422ed914e4aa35c06962eba Mon Sep 17 00:00:00 2001 From: Barend Gehrels Date: Thu, 12 Jun 2014 22:43:09 +0200 Subject: [PATCH] [buffer] disable get_occupation, remove commented left_turn handling --- .../buffer/buffered_piece_collection.hpp | 33 +++---------------- 1 file changed, 4 insertions(+), 29 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 a5ed513fd..60e3fd05e 100644 --- a/include/boost/geometry/extensions/algorithms/buffer/buffered_piece_collection.hpp +++ b/include/boost/geometry/extensions/algorithms/buffer/buffered_piece_collection.hpp @@ -387,32 +387,6 @@ struct buffered_piece_collection m_turns[turns[i].turn_index].count_on_occupied++; } } -#if 0 -// TODO: block non-left turns, keep left turns - for (std::vector::const_iterator - it = turns_to_keep.begin(); it != turns_to_keep.end(); ++it) - { - std::pair - pair = ordered_pair(it->from, it->to); - segment_pair_map::const_iterator segit - = turn_indices_per_segment_pair.find(pair); - if (segit == turn_indices_per_segment_pair.end()) - { - std::cout << "BAD LUCK" << std::endl; - } - else - { - std::cout << "FOUND IP" << std::endl; - for (std::set::const_iterator iit = segit->second.begin(); - iit != segit->second.end(); ++iit) - { - int turn_index = *iit; - //m_turns[turn_index].count_on_occupied++; - } - } - // Mark as included - -#endif } } @@ -439,8 +413,7 @@ struct buffered_piece_collection for (typename boost::range_iterator::type it = boost::begin(m_turns); it != boost::end(m_turns); ++it) { - if ( it->location == location_ok - && it->count_on_offsetted == 0 ) + if (it->location == location_ok) { int code = check_original < @@ -629,7 +602,9 @@ struct buffered_piece_collection >::apply(m_turns, m_pieces, visitor); } - //get_occupation(); + + + //get_occupation(); // Temporarily disabled, all tests passing... classify_turns();