Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions test/algorithms/overlay/overlay_cases.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1671,4 +1671,12 @@ static std::string issue_1487[2] =
"5110.0842867836363 -2645.5659190779725))"
};

// A hole of the first polygon is inside the second polygon and touches it at one vertex.
// The difference kept the hole, nested in the second polygon, and was invalid.
static std::string case_hole_touching_at_vertex[2] =
{
"POLYGON((0 0,0 100,100 100,100 0,0 0),(10 10,30 20,20 30,10 10))",
"POLYGON((10 10,15 50,50 50,50 15,10 10))"
};

#endif // BOOST_GEOMETRY_TEST_OVERLAY_CASES_HPP
1 change: 1 addition & 0 deletions test/algorithms/set_operations/set_ops_areal_areal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ int test_main(int, char* [])

TEST_CASE(issue_1471);
TEST_CASE(issue_1487);
TEST_CASE(case_hole_touching_at_vertex);
TEST_CASE(clustered_near_collinear_exit);

return 0;
Expand Down
Loading