Filter out edges that have any speed=0 segments.
They become non-snappable and non-routable. Note that a single segment of speed=0 will eliminate the entire edge.
This commit is contained in:
committed by
Patrick Niklaus
parent
eda6d9dc7c
commit
d012b44b7f
@@ -165,6 +165,9 @@ struct GraphFixture
|
||||
// to examine during tests.
|
||||
d.forward_segment_id = {pair.second, true};
|
||||
d.reverse_segment_id = {pair.first, true};
|
||||
d.fwd_segment_position = 0;
|
||||
d.forward_packed_geometry_id = 0;
|
||||
d.reverse_packed_geometry_id = 0;
|
||||
edges.emplace_back(d);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user