Handling Large Shrinking Deltas for Polygons #880
Replies: 4 comments 3 replies
-
|
Hi Kernal. |
Beta Was this translation helpful? Give feedback.
-
|
Is it possible to approximate max delta for non-empty result? |
Beta Was this translation helpful? Give feedback.
-
|
Sorry for ambiguous question. I will try again: |
Beta Was this translation helpful? Give feedback.
-
|
I was hoping for something like R of the max nested circle |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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!
Beta Was this translation helpful? Give feedback.
All reactions