Imported Upstream version 1.72.0
[platform/upstream/boost.git] / boost / geometry / algorithms / detail / is_valid / has_valid_self_turns.hpp
index 1978e83..e99e411 100644 (file)
@@ -63,7 +63,7 @@ public:
     typedef detail::overlay::turn_info
         <
             point_type,
-            typename geometry::segment_ratio_type
+            typename segment_ratio_type
                 <
                     point_type,
                     rescale_policy_type
@@ -87,11 +87,13 @@ public:
                 is_acceptable_turn<Geometry>
             > interrupt_policy;
 
+        // Calculate self-turns, skipping adjacent segments
         detail::self_get_turn_points::self_turns<false, turn_policy>(geometry,
                                           strategy,
                                           robust_policy,
                                           turns,
-                                          interrupt_policy);
+                                          interrupt_policy,
+                                          0, true);
 
         if (interrupt_policy.has_intersections)
         {