forked from google/skia
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Paths to intersect have two nearly coincident cubics. Where they cross, the intersection error makes the curves start at slightly different points. To sort the intersection, one curve is translated to the start of the opposite point, moving it from one side to the other, introducing a winding error. The fix looks for that error in a very tiny range (enlarging that range causes other tests that now pass to fail). This fix is very fragile and points to the need for a better approach than sorting angles to find winding values, as documented in the bug. Also renamed some angle functions to show that they operate only on lines and not general curves. All tests pass with this fix: ./out/release/pathops_unittest -V -x ./out/debug/pathops_unittest -V -x [email protected] Bug: skia:8380 Change-Id: I04e53d4c6a96035f661a4c9f31a17055ce13e3eb Reviewed-on: https://skia-review.googlesource.com/c/179241 Commit-Queue: Cary Clark <[email protected]> Reviewed-by: Cary Clark <[email protected]>
- Loading branch information
Cary Clark
authored and
Skia Commit-Bot
committed
Dec 21, 2018
1 parent
fb45594
commit 9d6049a
Showing
6 changed files
with
619 additions
and
1,045 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.