Skip to content

Commit

Permalink
fix #14800
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Apr 30, 2024
1 parent 624920f commit 7dacf0c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/netbuild/NBNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3332,6 +3332,17 @@ NBNode::buildWalkingAreas(int cornerDetail, double joinMinDist) {
if (count == (int)normalizedLanes.size()) {
// junction is covered by the whole walkingarea
wa.shape = myPoly;
// increase walking width if the walkingare is wider than a single lane
for (const NBEdge* in : myIncomingEdges) {
for (const NBEdge* out : myOutgoingEdges) {
if (in->getFromNode() == out->getToNode() && in->getInnerGeometry().reverse() == out->getInnerGeometry()
&& (in->getPermissions() & SVC_PEDESTRIAN)
&& (out->getPermissions() & SVC_PEDESTRIAN)) {
// doesn't catch all cases but probably most
wa.width = MAX2(wa.width, in->getTotalWidth() + out->getTotalWidth());
}
}
}
} else if (cornerDetail > 0) {
// build smooth inner curve (optional)
int smoothEnd = end;
Expand Down

0 comments on commit 7dacf0c

Please sign in to comment.