mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-06 18:35:41 +02:00
Tiebreaker for snap-rounding examination order
This commit is contained in:
+6
-2
@@ -323,10 +323,14 @@ struct scan_transition {
|
|||||||
bool operator<(scan_transition const &s) const {
|
bool operator<(scan_transition const &s) const {
|
||||||
if (y < s.y) {
|
if (y < s.y) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else if (y == s.y) {
|
||||||
return false;
|
if (segment < s.segment) {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
void snap_round(std::vector<segment> &segs, long long extent) {
|
void snap_round(std::vector<segment> &segs, long long extent) {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user