-
Notifications
You must be signed in to change notification settings - Fork 26
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
this contour crashes crossingsRemoved
#80
Comments
BTW if I disable the |
Wow, I've never seen that I am not sure why it's happening here. I'll try to reproduce this issue soon. |
This contour also crashes |
@mbutterick if you have the debugger paused at the assert, try navigating the stack up to
This should print out the curves that make up the contour and I can make a test case directly from that. |
Seems likely it’s a different bug so I’ll post a separate issue (see #81) |
Here’s a test case that produces same error. Slightly different shape on top but the problematic inflected curve at the bottom is the same. Text:
|
@mbutterick I am unfortunately not able to reproduce the issue. Here is the code I'm running trying to hit the assert with your first path:
Here is the code I'm running to try to reproduce the issue with the second path
Everything seems ok on my end. If you run these code snippets are things working ok on your end? I might need more information, like what branch you are using, OS version, XCode version, hardware things are running (especially 32 vs 64 bit). |
Sorry, that was my error. My copy of BezierKit was a little behind the current one. I’ve updated and the issue no longer recurs. |
good to know BezierKit is at least improving over time :) |
I am making a
Path
using this contour as a component and passing it throughcrossingsRemoved()
. The two off-curve points are key. Once the upper point gets one unit to the right of the lower point, it triggers this assertion inaddNeighbor
.The text was updated successfully, but these errors were encountered: