You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have been working on trying to detect if a polygon intersects itself when a user is drawing a polygon on the map in realtime or after a user completes the polygon. We tried to implement our own method using multiple approaches with this being one of them but all seem to have false positives.
Is there a plan to port this over from Turf.js? Has anyone implemented this in the past where you didn't receive false positives?
The text was updated successfully, but these errors were encountered:
Hi, your use case sounds interesting. I don’t think anyone is actively working on this function right now, but we’d welcome any contribution of a Swift implementation for it. In Swift, it would most naturally be a computed property like Polygon.selfIntersections, though it could live in a protocol shared by various geometry types to avoid duplication.
1ec5
changed the title
Port Kinks
Add property for self-intersections (kinks) in polygons
May 25, 2022
We have been working on trying to detect if a polygon intersects itself when a user is drawing a polygon on the map in realtime or after a user completes the polygon. We tried to implement our own method using multiple approaches with this being one of them but all seem to have false positives.
Is there a plan to port this over from Turf.js? Has anyone implemented this in the past where you didn't receive false positives?
The text was updated successfully, but these errors were encountered: