From efe9d6b8ccac5cce4f0746e3247be1983c8ba804 Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Thu, 10 Jan 2019 10:39:26 -0800 Subject: [PATCH] dont make the polygon too big. --- map_model/src/make/intersections.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/map_model/src/make/intersections.rs b/map_model/src/make/intersections.rs index 1f4e044b23..8cf3b9a184 100644 --- a/map_model/src/make/intersections.rs +++ b/map_model/src/make/intersections.rs @@ -232,8 +232,12 @@ fn make_new_polygon( "{} adjacent to {} fwd, {} back", id, fwd_id, back_id )); + // Toss in the original corners, so the intersection polygon doesn't cover area not + // originally covered by the thick road bands. + endpoints.push(fwd_pl.intersection(adj_fwd_pl).unwrap()); endpoints.push(pl_normal.last_pt()); endpoints.push(pl_reverse.last_pt()); + endpoints.push(back_pl.intersection(adj_back_pl).unwrap()); } // TODO See if this even helps or not