[geometry] bugfix for union (unit test - pending commit - change done in april 2012)

[SVN r78654]
This commit is contained in:
Barend Gehrels 2012-05-26 20:48:00 +00:00
parent 527480d804
commit fbb40a0793
3 changed files with 11 additions and 4 deletions

View File

@ -807,14 +807,10 @@ void test_all()
4, 3, 2, 3, 0, 3, // q
method_touch, 2, 3, "xx");
/***
TODO, work this out further / check this
// Case where
test_both<P, double>("issue_buffer_mill",
5.1983614873206241 , 6.7259025813913107 , 5.0499999999999998 , 6.4291796067500622 , 5.1983614873206241 , 6.7259025813913107, // p
5.0499999999999998 , 6.4291796067500622 , 5.0499999999999998 , 6.4291796067500622 , 5.1983614873206241 , 6.7259025813913107, // q
method_collinear, 2, 0, "tt");
***/
}

View File

@ -648,5 +648,11 @@ static std::string buffer_rt_r[2] =
};
static std::string buffer_rt_t[2] =
{
"POLYGON((0.00000000000000000 3.0,0.00000000000000000 4.0,0.00000000000000000 6.4142135623730958,1.7071067811865475 4.7071067811865479,2.7071067811865475 3.7071067811865475,4.4142135623730940 2.0,2.0 2.0,1.0 2.0,-0.00000000000000000 2.0,0.00000000000000000 3.0))",
"POLYGON((1.7071067811865475 3.2928932188134525,0.70710678118654746 2.2928932188134525,-1.0 0.58578643762690508,-1.0 3.0,-1.0 4.0,-1.0 4.0,-1.0 5.0,-1.0 7.4142135623730958,0.70710678118654746 5.7071067811865479,1.7071067811865475 4.7071067811865479,2.4142135623730954 4.0,1.7071067811865475 3.2928932188134525))"
};
#endif // BOOST_GEOMETRY_TEST_OVERLAY_CASES_HPP

View File

@ -323,6 +323,11 @@ void test_areal()
1, 0, if_typed<ct, float>(19, 20), 21.07612);
test_one<Polygon, Polygon, Polygon>("buffer_rt_r_rev", buffer_rt_r[1], buffer_rt_r[0],
1, 0, if_typed_tt<ct>(20, 19), 21.07612);
test_one<Polygon, Polygon, Polygon>("buffer_rt_t", buffer_rt_t[0], buffer_rt_t[1],
1, 0, if_typed_tt<ct>(16, 14), 15.6569);
test_one<Polygon, Polygon, Polygon>("buffer_rt_t_ref", buffer_rt_t[1], buffer_rt_t[0],
1, 0, if_typed_tt<ct>(16, 14), 15.6569);
}
template <typename P>