Don't use obviousness for links bifurcations
This commit is contained in:
parent
cf56b5ddbf
commit
7c8c25f7bc
@ -249,13 +249,13 @@ Intersection TurnHandler::handleThreeWayTurn(const EdgeID via_edge, Intersection
|
|||||||
OOOOOOO
|
OOOOOOO
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const auto all_ramps =
|
const auto all_links =
|
||||||
std::all_of(intersection.begin(), intersection.end(), [this](const auto &road) {
|
std::all_of(intersection.begin(), intersection.end(), [this](const auto &road) {
|
||||||
return node_based_graph.GetEdgeData(road.eid).flags.road_classification.IsRampClass();
|
return node_based_graph.GetEdgeData(road.eid).flags.road_classification.IsLinkClass();
|
||||||
});
|
});
|
||||||
|
|
||||||
auto fork = findFork(via_edge, intersection);
|
auto fork = findFork(via_edge, intersection);
|
||||||
if (fork && (all_ramps || obvious_index == 0))
|
if (fork && (all_links || obvious_index == 0))
|
||||||
{
|
{
|
||||||
assignFork(via_edge, fork->getLeft(), fork->getRight());
|
assignFork(via_edge, fork->getLeft(), fork->getRight());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user