Skip to content

Commit

Permalink
allow converting nodes with sidewalks to geometry refs #457
Browse files Browse the repository at this point in the history
git-svn-id: file:///home/behr_mi/git/sumo_synched/trunk@21008 afbd958f-9f77-42d5-a016-97a22340ccf4
  • Loading branch information
namdre committed Jun 20, 2016
1 parent 473ddd4 commit 871b4c3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sumo/src/netbuild/NBEdge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2237,9 +2237,7 @@ NBEdge::expandableBy(NBEdge* possContinuation) const {
case EDGE2EDGES: {
// the following edge must be connected
const EdgeVector& conn = getConnectedEdges();
if (find(conn.begin(), conn.end(), possContinuation)
== conn.end()) {

if (find(conn.begin(), conn.end(), possContinuation) == conn.end()) {
return false;
}
}
Expand All @@ -2254,7 +2252,8 @@ NBEdge::expandableBy(NBEdge* possContinuation) const {
}
// all lanes must go to the possible continuation
std::vector<int> conns = getConnectionLanes(possContinuation);
if (conns.size() != myLanes.size()) {
const int offset = MAX2(0, getFirstNonPedestrianLaneIndex(NBNode::FORWARD, true));
if (conns.size() != myLanes.size() - offset) {
return false;
}
}
Expand Down

0 comments on commit 871b4c3

Please sign in to comment.