-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a ton of robustness issues (parity with earcut v2.2.0) (#76)
* fix a ton of robustness issues * add a missing dep to hopefully fix travis * upgrade to clang-6 * xenial * update readme [skip ci]
- Loading branch information
Showing
13 changed files
with
168 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// This file is auto-generated, manual changes will be lost if the code is regenerated. | ||
|
||
#include "geometries.hpp" | ||
|
||
namespace mapbox { | ||
namespace fixtures { | ||
|
||
static const Fixture<short> boxy("boxy", 57, 1e-14, 0.000001, { | ||
{{3432,2779},{3432,2794},{3450,2794},{3450,2825},{3413,2825},{3413,2856},{3395,2856},{3395,2871},{3377,2871},{3377,2856},{3359,2856},{3359,2840},{3341,2840},{3341,2871},{3322,2871},{3322,2887},{3249,2887},{3249,2871},{3268,2871},{3268,2840},{3304,2840},{3304,2825},{3322,2825},{3322,2810},{3304,2810},{3304,2794},{3322,2794},{3322,2779},{3341,2779},{3341,2733},{3359,2733},{3359,2687},{3395,2687},{3395,2702},{3432,2702},{3432,2717},{3450,2717},{3450,2733},{3486,2733},{3486,2748},{3468,2748},{3468,2763},{3450,2763},{3450,2779},{3432,2779}}, | ||
{{3359,2794},{3341,2794},{3341,2810},{3395,2810},{3395,2794},{3377,2794},{3377,2779},{3359,2779},{3359,2794}}, | ||
{{3432,2779},{3432,2748},{3413,2748},{3413,2779},{3432,2779}}, | ||
{{3377,2779},{3395,2779},{3395,2748},{3377,2748},{3377,2779}}, | ||
{{3377,2717},{3395,2717},{3395,2702},{3377,2702},{3377,2717}}, | ||
}); | ||
|
||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// This file is auto-generated, manual changes will be lost if the code is regenerated. | ||
|
||
#include "geometries.hpp" | ||
|
||
namespace mapbox { | ||
namespace fixtures { | ||
|
||
static const Fixture<short> collinear_diagonal("collinear_diagonal", 14, 1e-14, 0.000001, { | ||
{{3468,1913},{3486,1884},{3413,1869},{3322,1869},{3413,1854},{3413,1869},{3486,1869},{3486,1884},{3504,1884},{3504,1869},{3432,1869},{3432,1854},{3395,1854},{3432,1839},{3432,1854},{3450,1839},{3341,1839},{3341,1825},{3195,1825},{3341,1810},{3341,1825},{3450,1825},{3523,1854},{3523,1913}}, | ||
}); | ||
|
||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// This file is auto-generated, manual changes will be lost if the code is regenerated. | ||
|
||
#include "geometries.hpp" | ||
|
||
namespace mapbox { | ||
namespace fixtures { | ||
|
||
static const Fixture<short> hourglass("hourglass", 2, 1e-14, 0.000001, { | ||
{{7,18},{7,15},{5,15},{7,13},{7,15},{17,17}}, | ||
}); | ||
|
||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// This file is auto-generated, manual changes will be lost if the code is regenerated. | ||
|
||
#include "geometries.hpp" | ||
|
||
namespace mapbox { | ||
namespace fixtures { | ||
|
||
static const Fixture<short> issue119("issue119", 18, 1e-14, 0.04, { | ||
{{2,12},{2,20},{25,20},{25,12}}, | ||
{{7,18},{7,15},{5,15}}, | ||
{{19,18},{19,17},{17,17}}, | ||
{{19,17},{21,17},{19,16}}, | ||
{{7,15},{9,15},{7,13}}, | ||
}); | ||
|
||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// This file is auto-generated, manual changes will be lost if the code is regenerated. | ||
|
||
#include "geometries.hpp" | ||
|
||
namespace mapbox { | ||
namespace fixtures { | ||
|
||
static const Fixture<short> touching2("touching2", 8, 1e-14, 0.000001, { | ||
{{120,2031},{92,2368},{94,2200},{33,2119},{42,2112},{53,2068}}, | ||
{{44,2104},{79,2132},{88,2115},{44,2104}}, | ||
}); | ||
|
||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// This file is auto-generated, manual changes will be lost if the code is regenerated. | ||
|
||
#include "geometries.hpp" | ||
|
||
namespace mapbox { | ||
namespace fixtures { | ||
|
||
static const Fixture<short> touching3("touching3", 15, 1e-14, 0.000001, { | ||
{{1241,887},{1257,891},{1248,904},{1232,911},{1212,911},{1207,911},{1209,900},{1219,898},{1225,907},{1241,887}}, | ||
{{1212,902},{1212,911},{1219,909},{1212,902}}, | ||
{{1248,891},{1239,896},{1246,898},{1248,891}}, | ||
}); | ||
|
||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.