dont make the polygon too big.

This commit is contained in:
Dustin Carlino 2019-01-10 10:39:26 -08:00
parent 374a44e0f2
commit efe9d6b8cc

View File

@ -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