aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/pathops_sorter.htm
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2016-09-09 09:37:57 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-09 09:37:57 -0700
commit81a478ca6c36aac3e53ce0373a281ac8940f4780 (patch)
tree384aeaec6831263679b6c37393a173e26613255f /tools/pathops_sorter.htm
parentb2796fdd9eab88836795d6a54cf6811af6ecdc81 (diff)
Skip adding coincident edges found
during curve intersection if their ends are nearly the same. Loosen conic/line intersection point check. Detect when coincident points are unordered. This means that points a/b/c on one curve may appear in b/c/a order on the opposite curve. Restructure addMissing to return success and return if a coincidence was added as a parameter. With this, tiger part a works. Tiger part b exposes bugs around tight quads that are nearly coincident with themselves, and are coincident with something else. The greedy coicident matcher may cause the point order to be out of sync. Still working out what to do in this case. TBR=reed@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2321773002 Review-Url: https://codereview.chromium.org/2321773002
Diffstat (limited to 'tools/pathops_sorter.htm')
-rw-r--r--tools/pathops_sorter.htm12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/pathops_sorter.htm b/tools/pathops_sorter.htm
index 58af3daf1f..053cc1071b 100644
--- a/tools/pathops_sorter.htm
+++ b/tools/pathops_sorter.htm
@@ -6,18 +6,18 @@
<title></title>
<div style="height:0">
-<div id="coin">
-{{{492.424042f, 225.118027f}, {492.427094f, 225.131409f}, {492.428802f, 225.138336f}}} id=3
-{{{492.428802f, 225.138336f}, {492.423584f, 225.115952f}}} id=4
-{{{492.451324f, 225.216217f}, {492.426239f, 225.127716f}, {492.425629f, 225.125076f}}} id=1
-</div>
+<div id="lineconic">
+ {{{494.348663f, 224.583771f}, {494.37619f, 224.68309f}}} id=1
+{{{494.375671f, 224.680908f}, {494.375397f, 224.67955f}, {494.376495f, 224.683868f}}} id=3
+ {{fX=494.37557983398438 fY=224.68092346191406 }, {fX=494.47489929199219 fY=224.65339660644531 }}
+ </div>
</div>
<script type="text/javascript">
var testDivs = [
- coin,
+ lineconic,
];
var decimal_places = 3;