From e839e78443e48d4ccad89059b4bc4b3d894fcfdd Mon Sep 17 00:00:00 2001 From: caryclark Date: Thu, 15 Sep 2016 07:48:18 -0700 Subject: quad and conic do not intersect If a quad a conic intersect only where the end of one is contained by the convex hull of the other, and the curve contained by the hull is nearly a straight line, treating it as a line may move the end point to the other side of the curve. Detect this by checking to see if the end point is in the hull, and if so, continue to subdivide the curve rather than treating it as a line. This fixes several existing tests that were disabled earlier this year. A typo in SkDCurve::nearPoint() prevented detecting when the end of a line was nearly touching a curve. Also fixed concidence a bit to get the second half of tiger further along. All existing tests, including extended testing in Release and the first half of tiger, work. TBR=reed@google.com BUG=skia:5131 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2338323002 Review-Url: https://codereview.chromium.org/2338323002 --- tools/pathops_visualizer.htm | 97 ++++++++++++++++++++++++++++++++++++-------- 1 file changed, 81 insertions(+), 16 deletions(-) (limited to 'tools/pathops_visualizer.htm') diff --git a/tools/pathops_visualizer.htm b/tools/pathops_visualizer.htm index 52c4417bb2..945a6a9e6c 100644 --- a/tools/pathops_visualizer.htm +++ b/tools/pathops_visualizer.htm @@ -3,22 +3,87 @@ -- cgit v1.2.3