Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Issue 2714243002: Correct polygon splitting in an almost-coplanar case. (Closed)

Created:
3 years, 10 months ago by Tobias Sargeant
Modified:
3 years, 9 months ago
Reviewers:
enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews, vmiura
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Correct polygon splitting in an almost-coplanar case. In the case described in the associated bug, the signs of the vertices of the quad to be split are [ 0 0 + - ], which means that floating point rounding has resulted in a polygon that is not flat. Originally one of the two points that lies on the splitting plane was not being included in either output polygon, which caused the result to be incorrect. This corrects the case when two consecutive points are on the splitting plane. BUG=693826 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2714243002 Cr-Commit-Position: refs/heads/master@{#453888} Committed: https://chromium.googlesource.com/chromium/src/+/02a3371e8aa5f5ec354509e3625371cbf6f81707

Patch Set 1 #

Patch Set 2 : Add a unittest. #

Total comments: 1

Patch Set 3 : Existing unittest: "Splitting a pentagon gives two triangles"... hmm... #

Patch Set 4 : remove stray whitespace addition. #

Patch Set 5 : Add additional check to DoubleSplit unittest #

Patch Set 6 : Make constants float, for Windows. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -11 lines) Patch
M cc/quads/draw_polygon.cc View 3 2 chunks +12 lines, -10 lines 0 comments Download
M cc/quads/draw_polygon_unittest.cc View 1 2 3 4 5 4 chunks +62 lines, -1 line 0 comments Download

Messages

Total messages: 38 (24 generated)
Tobias Sargeant
PTAL. In the linked bug I found a small repro for this case. Should it ...
3 years, 10 months ago (2017-02-24 21:04:07 UTC) #3
enne (OOO)
On 2017/02/24 at 21:04:07, tobiasjs wrote: > PTAL. In the linked bug I found a ...
3 years, 10 months ago (2017-02-24 21:12:50 UTC) #4
Tobias Sargeant
On 2017/02/24 21:12:50, enne wrote: > On 2017/02/24 at 21:04:07, tobiasjs wrote: > > PTAL. ...
3 years, 9 months ago (2017-02-27 16:44:21 UTC) #5
enne (OOO)
lgtm https://codereview.chromium.org/2714243002/diff/20001/cc/quads/draw_polygon_unittest.cc File cc/quads/draw_polygon_unittest.cc (right): https://codereview.chromium.org/2714243002/diff/20001/cc/quads/draw_polygon_unittest.cc#newcode494 cc/quads/draw_polygon_unittest.cc:494: // polygon to become twisted. Splitting should still ...
3 years, 9 months ago (2017-02-27 17:35:33 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2714243002/20001
3 years, 9 months ago (2017-02-28 12:26:49 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/23533)
3 years, 9 months ago (2017-02-28 13:02:15 UTC) #10
Tobias Sargeant
On 2017/02/28 13:02:15, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 9 months ago (2017-02-28 16:38:13 UTC) #13
enne (OOO)
lgtm 2 Thanks for the explanation. :)
3 years, 9 months ago (2017-02-28 17:37:53 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2714243002/80001
3 years, 9 months ago (2017-02-28 18:43:22 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/241085)
3 years, 9 months ago (2017-02-28 18:53:31 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2714243002/100001
3 years, 9 months ago (2017-02-28 19:02:14 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/357769)
3 years, 9 months ago (2017-02-28 19:43:52 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2714243002/120001
3 years, 9 months ago (2017-03-01 08:56:19 UTC) #35
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 09:02:45 UTC) #38
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/02a3371e8aa5f5ec354509e36253...

Powered by Google App Engine
This is Rietveld 408576698