-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
Road::left_edge_offset_of(RoadPosition)
and use it to shift cen…
…ter_line appropriately.
- Loading branch information
1 parent
c1911fd
commit 94147c7
Showing
3 changed files
with
229 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,6 @@ use geom::{Circle, Distance}; | |
use crate::{IntersectionControl, IntersectionKind, StreetNetwork}; | ||
|
||
pub fn generate(streets: &mut StreetNetwork, timer: &mut Timer) { | ||
// Initialize trimmed_center_line to the corrected center | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
dabreegster
Contributor
|
||
for road in streets.roads.values_mut() { | ||
let pl = road.untrimmed_road_geometry().0; | ||
road.center_line = pl; | ||
} | ||
|
||
let mut remove_dangling_nodes = Vec::new(); | ||
timer.start_iter( | ||
"find each intersection polygon", | ||
|
This was removed in 94147c7. I'm not sure this is safe to do yet... I've been trying to get to this point in the intersection geom refactors, but I think we properly need
trim_start
and stuff maintained everywhere first. I'm going to try reverting this bit and see if it fixes the regressing intersections