ctessum / geom

Geometry objects and functions for Go
BSD 2-Clause "Simplified" License
56 stars 15 forks source link

How to check a polygon for self-intersection or MakeValid? #13

Open Kalinin-Andrey opened 2 years ago

Kalinin-Andrey commented 2 years ago

Hi all! Can you tell me a convenient way to check a polygon for self-intersection or apply a method from a neighboring library ctessum/polyclip-go MakeValid()? Or can you make methods Polygon.toPolyClip() and polyClipToPolygon() public?

ctessum commented 2 years ago

I'd be okay with making those methods public. Feel free to make a pull request.