Is there some Python binding for Clipper library?
I need OffsetPolygons function. I've tried to convert C++ Clipper code to Python, and I managed to do that up to some point, but then it becomes too complex - and it seems that I should convert to Python complete Clipper file - which is huge job.
Some simple code for polygon borders offsetting with Python is available here, but it doesn't solve the problem universally - when offset distances are high and some corners disappear or new ones appear.
Any suggestions to other Python based solutions for polygon offsetting are very welcome.
You can try pyclipper (source) - it is a wrapper around the C++ version of the Clipper library (v6.2.1). It exposes all of Clippers' public methods. Installation via pip:
pip install pyclipper
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With