This is more of a discussion suggestion than a request. Polygon clipping and boolean operations is an incredibly important task in computational geometry, and it can be valuable in applications beyond Turf and geo. So I'd love to see this algorithm implementation become general-purpose and free of dependencies and assumptions about its use. This means:
- Make it usable outside of Turf, e.g. just for geometric intersections/unions.
- Not care about MultiPolygon/Polygon/etc distinctions — make the API more specific and add geo/Turf-related handling in a wrapper (separate from this repo)
- Get rid of Turf dependencies — things like clockwise and point-in-poly detection are just a few lines of code so there's not much win from reusing geo-specific Turf modules.
cc @morganherlocker