restructured to only return valid turns to the outside + cleanup
This commit is contained in:
committed by
Patrick Niklaus
parent
71c0d5253d
commit
0cc23dec6f
@@ -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
Reference in New Issue
Block a user