restructured to only return valid turns to the outside + cleanup

This commit is contained in:
Moritz Kobitzsch
2016-03-17 14:09:09 +01:00
committed by Patrick Niklaus
parent 71c0d5253d
commit 0cc23dec6f
8 changed files with 1286 additions and 1155 deletions
+2 -5
View File
@@ -318,15 +318,12 @@ void EdgeBasedGraphFactory::GenerateEdgeExpandedEdges(
}
++node_based_edge_counter;
auto turn_candidates = turn_analysis.getTurns(node_u, edge_from_u);
auto possible_turns = turn_analysis.getTurns(node_u, edge_from_u);
const NodeID node_v = m_node_based_graph->GetTarget(edge_from_u);
for (const auto turn : turn_candidates)
for (const auto turn : possible_turns)
{
if (!turn.valid)
continue;
const double turn_angle = turn.angle;
// only add an edge if turn is not prohibited
File diff suppressed because it is too large Load Diff