[overlay] fix cases where IP is not at endpoint. This fixes the last

union/buffer cases with less_by_segment_ratio instead of handle_tangencies
This commit is contained in:
Barend Gehrels
2015-11-12 19:46:29 +01:00
parent 242c619b35
commit e97bbb4da1
3 changed files with 22 additions and 29 deletions

View File

@@ -324,11 +324,7 @@ void test_all()
test_one<multi_polygon_type, polygon_type>("wrapped_05", wrapped, join_round, end_flat, 104.570, 0.5);
test_one<multi_polygon_type, polygon_type>("wrapped_05", wrapped, join_miter, end_flat, 105.000, 0.5);
test_one<multi_polygon_type, polygon_type>("wrapped_10", wrapped, join_round, end_flat, 142.281, 1.0);
#ifdef BOOST_GEOMETRY_TEST_FAIL_TANGENCIES
test_one<multi_polygon_type, polygon_type>("wrapped_10", wrapped, join_miter, end_flat, 144.000, 1.0);
#endif
test_one<multi_polygon_type, polygon_type>("wrapped_15", wrapped, join_round, end_flat, 167.066, 1.5);
test_one<multi_polygon_type, polygon_type>("wrapped_15", wrapped, join_miter, end_flat, 169.000, 1.5);
@@ -480,9 +476,7 @@ void test_all()
test_one<multi_polygon_type, polygon_type>("rt_u8", rt_u8, join_miter, end_flat, 70.9142, 1.0);
test_one<multi_polygon_type, polygon_type>("rt_u9", rt_u9, join_miter, end_flat, 59.3063, 1.0);
test_one<multi_polygon_type, polygon_type>("rt_u10", rt_u10, join_miter, end_flat, 144.0858, 1.0);
#ifdef BOOST_GEOMETRY_TEST_FAIL_TANGENCIES
test_one<multi_polygon_type, polygon_type>("rt_u10_50", rt_u10, join_miter, end_flat, 0.2145, -0.50);
#endif
test_one<multi_polygon_type, polygon_type>("rt_u10_25", rt_u10, join_miter, end_flat, 9.6682, -0.25);
test_one<multi_polygon_type, polygon_type>("rt_u11", rt_u11, join_miter, end_flat, 131.3995, 1.0);

View File

@@ -127,12 +127,10 @@ void test_areal()
case_recursive_boxes_5[0], case_recursive_boxes_5[1],
3, 2, 110, 70.0);
#ifdef BOOST_GEOMETRY_TEST_FAIL_TANGENCIES
// TODO: fix self touching interior ring (should get 3 interior rings)
test_one<Polygon, MultiPolygon, MultiPolygon>("case_recursive_boxes_6",
case_recursive_boxes_6[0], case_recursive_boxes_6[1],
1, 2, 25, 24.0);
#endif
test_one<Polygon, MultiPolygon, MultiPolygon>("ggl_list_20120915_h2_a",
ggl_list_20120915_h2[0], ggl_list_20120915_h2[1],