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

Chapter 28 - Curve-line intersections #329

Open
thehyperevilcorp opened this issue Oct 9, 2021 · 1 comment
Open

Chapter 28 - Curve-line intersections #329

thehyperevilcorp opened this issue Oct 9, 2021 · 1 comment

Comments

@thehyperevilcorp
Copy link

By selecting control points for quadratic bezier carefully you can see that intersection code doesn't handle border cases properly.

This happens e.g. when you have following setup where p0(180, 0), p1(180, 100) and p2(180, 200), line in y=100:

Screenshot 2021-10-09 at 14 32 56

If you move horizontal line up/down you will discover that there are also other spots where intersection fails.

@Pomax
Copy link
Owner

Pomax commented Oct 11, 2021

Yeah, degenerate curve cases definitely need some fixing atm. (You'd think the math worked whether curves were degenerate or not, but no. Zero-deltas make that hilariously not-applicable)

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

2 participants