Skip to content
Open
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
9 changes: 9 additions & 0 deletions test/algorithms/overlay/overlay_cases.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1671,4 +1671,13 @@ static std::string issue_1487[2] =
"5110.0842867836363 -2645.5659190779725))"
};

// Two triangles where an edge of each crosses the other at a very small angle.
// The crossing ratio was computed inaccurately: the union was empty and the intersection
// was the whole first triangle.
static std::string case_nearly_parallel_crossing[2] =
{
"POLYGON((547.0194 1164.9817,623.376 1088.6251,543.6382 1161.6005,547.0194 1164.9817))",
"POLYGON((547.2261 1164.775,543.2119 1160.7608,543.2119 1168.7892,547.2261 1164.775))"
};

#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_nearly_parallel_crossing);
TEST_CASE(clustered_near_collinear_exit);

return 0;
Expand Down
Loading