From 73e597d0eddeaaa466101d5bb7da537c0066166a Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Tue, 18 Apr 2017 12:08:58 -0400 Subject: keep integral rectangle intersections integral A pair of coincident lines can generate multiple intersection points. Path ops is more stable when the intersection T value is used to recompute the intersection point, but this has the side-effect of making integral edges intersect at non-integral values. While it's worthwhile to fix this, for the moment it is less disruptive to only worry about keeping intersection values integral if the original intersection point is integral in both axes. Also, fix some debugging code that bit-rotted. R=msarett@google.com Change-Id: Iefd27b25d1d21c22b224c174bd59bc6c105033c4 Reviewed-on: https://skia-review.googlesource.com/13721 Reviewed-by: Matt Sarett Commit-Queue: Cary Clark --- tools/pathops_visualizer.htm | 1758 +++++------------------------------------- 1 file changed, 192 insertions(+), 1566 deletions(-) (limited to 'tools/pathops_visualizer.htm') diff --git a/tools/pathops_visualizer.htm b/tools/pathops_visualizer.htm index 1844dfd3ad..99acb76a6f 100644 --- a/tools/pathops_visualizer.htm +++ b/tools/pathops_visualizer.htm @@ -2,1596 +2,222 @@