Skip to content

Commit

Permalink
Tiebreaker for snap-rounding examination order
Browse files Browse the repository at this point in the history
  • Loading branch information
e-n-f committed Nov 14, 2023
1 parent 8a996b9 commit 9e46ac8
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
8 changes: 6 additions & 2 deletions polygon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,13 @@ struct scan_transition {
bool operator<(scan_transition const &s) const {
if (y < s.y) {
return true;
} else {
return false;
} else if (y == s.y) {
if (segment < s.segment) {
return true;
}
}

return false;
}
};

Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/tl_2015_us_county/out/-z8.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/tl_2015_us_county/out/-z8_-pp.json

Large diffs are not rendered by default.

0 comments on commit 9e46ac8

Please sign in to comment.