-
-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PolyLine shifting can crash #860
Comments
Another example where a bug somewhere in this implementation is causing a mess: It looks fine in OSM, https://www.openstreetmap.org/node/282416719#map=19/51.46319/-2.54542 |
|
In map_editor, trimmed points are
that matches importing by the end of |
make_polygons(0.5m) of PolyLine { pts: [Pt2D { x: 5217.6908, y: 5241.742 }, Pt2D { x: 5217.683, y: 5241.7357 }, Pt2D { x: 5212.1705, y: 5244.2894 }], length: Distance(6.0854) } failed: Line from Pt2D { x: 5217.6908, y: 5241.742 } to Pt2D { x: 5217.683, y: 5241.7357 } too small
Camden and other maps crash for reasons I don't understand -- the road center line is OK, but when we try to shift the polyline, the result doesn't break upfront, but it later crashes when trying to make polygons.
Short-term fix is to avoid the crash and just return a circle instead of a thickened polyline:
![Screenshot from 2022-02-17 14-18-00](https://user-images.githubusercontent.com/1664407/154500272-6b771c10-ac64-456b-8a28-aa92639a54f0.png)
Actual fix is to make polyline shifting correct and robust. I never meant for my horrible math to last this long; I really want to investigate https://github.com/jbuckmccready/cavalier_contours or something else.
The text was updated successfully, but these errors were encountered: