fix crash in to_thick_boundary triggered in the 23rd map

This commit is contained in:
Dustin Carlino 2019-05-14 10:42:42 -07:00
parent faea2e94e3
commit e350d10578

View File

@ -65,7 +65,7 @@ impl PolyLine {
boundary_width: Distance,
) -> Option<Polygon> {
assert!(self_width > boundary_width);
if self.length() <= boundary_width {
if self.length() <= boundary_width + EPSILON_DIST {
return None;
}
let slice = self.exact_slice(boundary_width / 2.0, self.length() - boundary_width / 2.0);