Skip to content

@turf/kinks v7.0.0 doesn't report self-intersection points in polygon (v6.5.0 does) #2627

@arkus7

Description

@arkus7

I've been using @turf/kinks v6.5.0 to find whether the polygon has some self-intersecting lines inside.

The geometry that on v6.5.0 returned 3 points as a result of the kinks(geometry) call, in v7.0.0 returns no points.

Here is a gist with the GeoJSON(s): https://gist.github.com/arkus7/bbd0bad3a4d81eb6edc5d24f43ad9f7c

Example on JSFiddle using v7.0.0 https://jsfiddle.net/abefhm5o/1/
This shows that the newest version doesn't report the kinks the same as v6.5.0: https://jsfiddle.net/o1L8sd4u/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions