Adjusted to PR comments

This commit is contained in:
Michael Krasnyk 2017-05-02 13:32:04 +02:00 committed by Patrick Niklaus
parent 19494984eb
commit 2402d60429

View File

@ -111,20 +111,26 @@ void RoundaboutHandler::invalidateExitAgainstDirection(const NodeID from_nid,
if (in_edge_data.roundabout || in_edge_data.circular) if (in_edge_data.roundabout || in_edge_data.circular)
return; return;
std::cout << "invalidateExitAgainstDirection\n";
// Find range in which exits that must be invalidated (shaded areas): // Find range in which exits that must be invalidated (shaded areas):
// exit..end exit..end begin..exit for ↺ roundabouts // exit..end exit..end begin..exit for ↺ roundabouts
// ⭦ ⭦ ⭩ ⭦ // *************************************
// ⭡⭧ ⭡⭩ ▒ ▒⭨⭡ // * <--. ^ <--. / <--. *
// ⭡⭦ ⭡⭨▒▒ ▒▒⭡⭨ // * | / | /░ | *
// ⭧▒▒⭦ ⭧▒▒▒▒ ▒▒⭧ // * |/ |v░░ -->| *
// * |^ |\ ░ ░░░|\ *
// * |░\ |░\░ ░░░| \ *
// * --'░░░\ --'░░░v --' v *
// *************************************
// //
// begin..exit begin..exit exit..end for ↻ roundabouts // begin..exit begin..exit exit..end for ↻ roundabouts
// ⭨▒▒▒ ⭨▒▒ ⭩ ▒▒⭨ // *************************************
// ⭣⭧▒ ⭣⭩ ▒▒⭣⭧ // * --.░░░^ --.░░░/ --. ^ *
// ⭣⭦▒ ⭣⭨ ▒⭧⭣ // * |░/░ |░/ ░░░| / *
// ⭩ ⭦ ⭩ ⭩ // * |/░░ |v ░░░|/ *
// * |^░░ |\ -->| *
// * | \░ | \ | *
// * <--' \ <--' v <--' *
// *************************************
bool roundabout_entry_first = false; bool roundabout_entry_first = false;
auto invalidate_from = intersection.end(), invalidate_to = intersection.end(); auto invalidate_from = intersection.end(), invalidate_to = intersection.end();
for (auto road = intersection.begin(); road != intersection.end(); ++road) for (auto road = intersection.begin(); road != intersection.end(); ++road)