-
Notifications
You must be signed in to change notification settings - Fork 392
Description
Hi, and thanks for the excellent work on this library!
I want to use this library for shrinking polygons and it worked well for me during tests. The operation understandably fails when the delta exceeds size limits, but for my specific use case, I need a slightly different behavior.
I've attached an image illustrating the desired behavior:

For example, with a rectangle, I would like the following behavior:
delta < w/2: The offset behaves normally.
w/2 <= delta < h/2: The shape reduces to a line in the center, which becomes smaller as the delta increases.
h/2 <= delta: The shape reduces to a single point in the center.
I'm aiming for similar behavior with more complex shapes, as shown in the image.
Would it be possible to achieve this behavior with the current library? If not, do you have any suggestions or workarounds that might help?
Thanks in advance for your assistance!