mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-10 11:32:15 +00:00
Merge branch 'develop' of github.com:boostorg/geometry into develop
This commit is contained in:
@@ -273,6 +273,13 @@ void test_all()
|
||||
"POLYGON((5 0,2.5 9,9.5 3.5,0.5 3.5,7.5 9,5 0))",
|
||||
0, 11, 25.6158412);
|
||||
|
||||
// CCW polygons should turn CW after dissolve
|
||||
test_one<polygon, polygon>("cw",
|
||||
"POLYGON((2 8,8 8,8 0,0 0,0 6,4 6,4 4,2 4,2 8))",
|
||||
0, 7, 60);
|
||||
test_one<polygon, polygon>("ccw",
|
||||
"POLYGON((2 8,2 4,4 4,4 6,0 6,0 0,8 0,8 8,2 8))",
|
||||
0, 12, 64); // TODO: should have the same, 7, 60. The polygon is dissolved (splitted) but the extra polygon is still on top of the other
|
||||
|
||||
// Multi-geometries
|
||||
{
|
||||
|
||||
@@ -125,7 +125,12 @@ class plusmin_policy
|
||||
//negative = true;
|
||||
|
||||
typedef typename geometry::point_type<Geometry2>::type point_type;
|
||||
typedef overlay::turn_info<point_type> turn_info;
|
||||
|
||||
typedef overlay::turn_info
|
||||
<
|
||||
point_type,
|
||||
typename segment_ratio_type<point_type, RescalePolicy>::type
|
||||
> turn_info;
|
||||
std::deque<turn_info> turns;
|
||||
|
||||
// Get (and stop on) any intersection
|
||||
|
||||
Reference in New Issue
Block a user