Skip to content

Commit

Permalink
fixing shape inconsistency #14699
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Apr 12, 2024
1 parent d9ae93b commit 72a8309
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/netbuild/NBEdgeCont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,12 @@ NBEdgeCont::recheckLanes() {
}
}
}
// check for matching bidi lane shapes (at least for the simple case of 1-lane edges)
const NBEdge* bidi = edge->getBidiEdge();
if (bidi != nullptr && edge->getNumLanes() == 1 && bidi->getNumLanes() == 1 && edge->getID() < bidi->getID()) {
edge->getLaneStruct(0).shape = bidi->getLaneStruct(0).shape.reverse();
}

// check for valid offset and speed
const double startOffset = edge->isBidiRail() ? edge->getTurnDestination(true)->getEndOffset() : 0;
int i = 0;
Expand Down

0 comments on commit 72a8309

Please sign in to comment.