mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-11 13:34:10 +00:00
[test] add simpler version of case_108_muli as single version, with
missing intersection point
This commit is contained in:
parent
b022ae5606
commit
cf42d0d08d
@ -367,6 +367,15 @@ static std::string case_81[2] = {
|
||||
"POLYGON((10 0,10 10,20 10,20 0,10 0),(10 6,15 3,18 8,10 6))"
|
||||
};
|
||||
|
||||
|
||||
// Missing intersection, simpler version of case_108_multi
|
||||
static std::string case_82[3] = {
|
||||
"POLYGON((4 4,4 3,1 3,1 2,0 2,0 6,1 6,2 5,2 4,4 4),(2 4,1 4,1.5 3.5,2 4))",
|
||||
"POLYGON((3 6,3 5,5 5,5 0,4 0,4 1,2 1,2 3,2 4,1 3,1 5,2 6,3 6),(3 3,3 2,4 2,4 4,2 4,3 3))",
|
||||
"POLYGON((3 6,3 5,5 5,5 1, 2 1,2 3,2 4,1 3,1 5,2 6,3 6),(3 3,3 2,4 2,4 4,2 4,3 3))"
|
||||
};
|
||||
|
||||
|
||||
static std::string case_many_situations[2] = {
|
||||
"POLYGON((2 6,2 14,10 18,18 14,18 6,16 5,14 4,12 3,10 2,8 3,6 4,4 5,2 6))",
|
||||
"POLYGON((2 6,2 7,2 8,2 9,2 10,2 11,2 12,1 14"
|
||||
|
@ -569,9 +569,14 @@ void test_all(bool test_self_tangencies = true, bool test_mixed = false)
|
||||
test_traverse_intersection::apply("79",
|
||||
2, 20, case_79[0], case_79[1]);
|
||||
|
||||
// Should be 3 shapes
|
||||
test_traverse_intersection::apply("82a",
|
||||
2, 2.0, case_82[0], case_82[1]);
|
||||
// Should be 3 shapes
|
||||
test_traverse_intersection::apply("82b",
|
||||
2, 2.0, case_82[0], case_82[2]);
|
||||
// other
|
||||
|
||||
|
||||
// pies (went wrong when not all cases where implemented, especially some collinear (opposite) cases
|
||||
test_traverse_intersection::apply("pie_16_4_12",
|
||||
1, 491866.5, pie_16_4_12[0], pie_16_4_12[1]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user