|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r77338 - in trunk/libs/geometry/test/algorithms: . overlay
From: barend.gehrels_at_[hidden]
Date: 2012-03-14 14:59:20
Author: barendgehrels
Date: 2012-03-14 14:59:19 EDT (Wed, 14 Mar 2012)
New Revision: 77338
URL: http://svn.boost.org/trac/boost/changeset/77338
Log:
[geometry] unit test to avoid future regressions in fix for robustness issue on touch with r > 1
Text files modified:
trunk/libs/geometry/test/algorithms/overlay/overlay_cases.hpp | 7 ++++++-
trunk/libs/geometry/test/algorithms/union.cpp | 6 ++++++
2 files changed, 12 insertions(+), 1 deletions(-)
Modified: trunk/libs/geometry/test/algorithms/overlay/overlay_cases.hpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/overlay/overlay_cases.hpp (original)
+++ trunk/libs/geometry/test/algorithms/overlay/overlay_cases.hpp 2012-03-14 14:59:19 EDT (Wed, 14 Mar 2012)
@@ -595,6 +595,11 @@
"POLYGON((0 0,0 4,4 4,4 5,5 5,5 1,4 1,4 0,0 0))"
};
-
+// From buffer-robustness-test with segment-intersection "touching" with r ~ 1.16
+static std::string buffer_rt_i[2] =
+ {
+ "POLYGON((1.0 1.0,1.0 2.0,1.0 3.0,2.0 3.0,3.0 3.0,5.4142135623730949 3.0,3.7071067811865475 1.2928932188134525,2.7071067811865475 0.29289321881345254,1.0 -1.4142135623730949,1.0 1.0))",
+ "POLYGON((2.0 2.0,2.0 3.0,2.0 4.0,3.0 4.0,4.0 4.0,6.4142135623730958 4.0,4.7071067811865479 2.2928932188134525,3.7071067811865475 1.2928932188134525,2.0 -0.41421356237309387,2.0 2.0))"
+ };
#endif // BOOST_GEOMETRY_TEST_OVERLAY_CASES_HPP
Modified: trunk/libs/geometry/test/algorithms/union.cpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/union.cpp (original)
+++ trunk/libs/geometry/test/algorithms/union.cpp 2012-03-14 14:59:19 EDT (Wed, 14 Mar 2012)
@@ -285,6 +285,12 @@
1, 0, 17, 16.571);
test_one<Polygon, Polygon, Polygon>("buffer_rt_g_rev", buffer_rt_g[1], buffer_rt_g[0],
1, 0, 17, 16.571);
+
+ test_one<Polygon, Polygon, Polygon>("buffer_rt_i", buffer_rt_i[0], buffer_rt_i[1],
+ 1, 0, 13, 13.6569);
+ test_one<Polygon, Polygon, Polygon>("buffer_rt_i_rev", buffer_rt_i[1], buffer_rt_i[0],
+ 1, 0, 13, 13.6569);
+
}
template <typename P>
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk