From 08bc8488fa2ea2d2a17efb1443f0ec6579d5a3c8 Mon Sep 17 00:00:00 2001 From: caryclark Date: Fri, 24 Apr 2015 09:08:57 -0700 Subject: fix multiple intersection logic When three or more curves intersect at the same point, ensure that each curve records the intersections of the others. This fixes a number of cubic tests. TBR=reed@google.com BUG=skia:3588 Review URL: https://codereview.chromium.org/1105943002 --- tools/pathops_sorter.htm | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'tools/pathops_sorter.htm') diff --git a/tools/pathops_sorter.htm b/tools/pathops_sorter.htm index 3d546d9e23..c6ec3d467e 100644 --- a/tools/pathops_sorter.htm +++ b/tools/pathops_sorter.htm @@ -7,25 +7,8 @@
-{{{5, 6}, {3, 5}, {5, 0}, {4, 3}}}, -{{{4.5360000000000182, 1.2239999999999371}, {4.0559999999999805, 2.9040000000000665}}}, id=1 -{{{4.1093749999999858, 2.8125000000000586}, {4.4843750000000142, 1.312499999999944}}}, id=2 -{{{8.7468579296817381, 10.411900254521452}, {0.41902943319982722, 0.94367937778258604}}}, id=3 -{{{4.3057224425668572, 2.0550770020134008}, {4.2925113773388723, 2.0515321686189738}}}, id=4 -{{4.4990035142054987, 11.169115071012422}, {3.6556891335276789, -2.825467308735897}}}, id=5 -
- -
-{{{5, 6}, {3, 5}, {5, 0}, {4, 3}}}, -{{{4.5360000000000182, 1.2239999999999371}, {4.0559999999999805, 2.9040000000000665}}}, id=1 -{{{4.1093749999999858, 2.8125000000000586}, {4.4843750000000142, 1.312499999999944}}}, id=2 -
- -
-{{{5, 6}, {3, 5}, {5, 0}, {4, 3}}}, -{{{8.7468579296817381, 10.411900254521452}, {0.41902943319982722, 0.94367937778258604}}}, id=3 -{{{4.3057224425668572, 2.0550770020134008}, {4.2925113773388723, 2.0515321686189738}}}, id=4 -{{4.4990035142054987, 11.169115071012422}, {3.6556891335276789, -2.825467308735897}}}, id=5 +{{{2.0185184099245816, 2.3784720550756902}, {1.9467591438442469, 2.1736109238117933}, {1.8796295076608658, 1.9722220152616501}, {1.8148146867752075, 1.7777775526046753}}}, +{{{2.0185184099245816, 2.3784720550756902}, {1.9467591438442469, 2.1736109238117933}, {1.8796295076608658, 1.9722220152616501}, {1.8148146867752075, 1.7777775526046753}}},
@@ -34,8 +17,6 @@ var testDivs = [ sect1, -sect2, -sect3, ]; var decimal_places = 3; -- cgit v1.2.3