BezierInfo-2
BezierInfo-2 copied to clipboard
Chapter 28 - Curve-line intersections
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:
If you move horizontal line up/down you will discover that there are also other spots where intersection fails.
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)