Skip to content
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

Ugly case #30

Open
liberostelios opened this issue Sep 28, 2020 · 0 comments
Open

Ugly case #30

liberostelios opened this issue Sep 28, 2020 · 0 comments

Comments

@liberostelios
Copy link
Collaborator

liberostelios commented Sep 28, 2020

Screenshot 2020-09-28 at 16 25 15

This line is getting this ugly shape after trim. The reason is that we don't build a straight segment between the intersection of the two lines and the end point, but we try to maintain the original curvature of the line.

We can fix that by checking if something peculiar happens (e.g., in this case the length gets almost twice as long as the original) in which case we fall back to constructing a straight segment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant