From 612f70d5fa2d4bf7a393c791966bbce933407017 Mon Sep 17 00:00:00 2001 From: caryclark Date: Tue, 19 May 2015 11:05:37 -0700 Subject: handle large conic strokes better A stroked conic computes the outset quad's control point by computing the intersection of the quad's endpoints. If the the denominator used to compute the scale factor for the control point is small, check to see if the numerator is also small so that the division stays bounded. Also clean up error returns and internal function calls to simplify the code. Additionally, remove comic max curvature (unimplemented) and call extrema functions instead to handle cases where the conic is degenerate or is a line. R=reed@google.com, fmalita@chromium.org BUG=skia:3843 Review URL: https://codereview.chromium.org/1144883003 --- tools/pathops_sorter.htm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tools/pathops_sorter.htm') diff --git a/tools/pathops_sorter.htm b/tools/pathops_sorter.htm index 3411505eb7..4fb18fad64 100644 --- a/tools/pathops_sorter.htm +++ b/tools/pathops_sorter.htm @@ -7,9 +7,10 @@
-{{{6, -3}, {0, 1}}} id=3 -{{{1.6714313f, -1.08141601f}, {2.24979973f, -1.14467525f}, {2.27122664f, -0.514151096f}, {0, 1}}} id=5 -{{{0.001119050197303295135, 0.9992539882659912109}, {4.001119136810302734, 6.999254226684570312}}}, +{{{fX=1.97000003 fY=2.00000000 }, {fX=1.97000003 fY=3.97000003 }, {fX=0.000000000 fY=3.97000003 }} fW: 0.707106769 +{{{fX=1.99750006 fY=2.00000000 } {fX=1.99750006 fY=2.02749991 } +{{{fX=1.96415257 fY=2.36347127 } {fX=1.95914865 fY=2.39051223 } +
-- cgit v1.2.3