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

Unite fails for path with self-overlapping line, and disappears on subtract #2036

Open
bitbof opened this issue Jun 3, 2023 · 0 comments
Open

Comments

@bitbof
Copy link

bitbof commented Jun 3, 2023

Description/Steps to reproduce

Take a path where the line perfectly overlaps with itself in one spot. (parallel to x/y axis or diagonal, does not matter)

  • When it is united with anything (e.g. empty path), the path will not be properly simplified.
  • When a path is subtracted from it, it will completely disappear.

Link to reproduction test-case

http://sketch.paperjs.org/#V/0.12.17/S/rZRdb4IwFIb/ygkXCyQM+cwWjbvZHzDxErgoWJVYW9LWLWbZf1/Lh4I4ZWYQoNByznue88KXQdEeG1NjucMy3xq2kbOVvk94QnNGhYQ1KsgCye2CFVQKmEMce65rgzqlNsSRa0fV1W4evLp2Z6oa+PWjdKajTibwwLZnH3gFghSbrSTHszpxyHMsxN8FOt7vEtvQmeQolxexm1diXwUM9OClHtSvtoeqUuSYIl4w8MCUrASC19Jq5krM1ziXoKriBJXw/FZxFufspcqq8lH8qYZquaNlmP1mWM6BFhKbF4vi1LIqMTqGsy4IeWeE8Xli8E2GTD+KbFfvjmclRmfhgZDjEhOlS6Geg+QHPLtWj1/Xw3Uv2oIok9eKatrTKasS7v9fl7R0fwhq4IsbrBzVZioIUrOeSgXumZ4/xOfaDcA+Pn88vwDMjEnJ9jct8XQyYOuOKYitUg6rQqCyxIhf2CW475c25CWGodd7WHSfog6WYLSrgvFYwhOWu87qsxmaTCUOR3niQR6VTXpEwtFGCa8TUb/ejGO0qz8QYxqn3z8=

image

Expected result

  • Path is properly simplified on unite.
  • Path does not completely disappear on subtract.

Additional information

Does not seem like a regression. Also fails with v0.12.3.

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

No branches or pull requests

1 participant