Check if polygon was clipped excessively during offset #692
MatthewJolly
started this conversation in
General
Replies: 1 comment
-
I'm not sure if this suggestion below will be entirely reliable, but ...
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to offset a polygon multiple times, and sometimes this results in an offset big enough that the resulting polygon contour no longer matches the shape of its parent (as some overlapping regions were clipped out). Is there an easy way to check if this happened, so that I can ignore those polygons? In essence I only want the offset polygons where the contour mostly resembles the shape of the original polygon.
This paper mentions offsetting the result polygon in reverse and then checking the areas, but when I try this I get polygons that are different enough where the area calculation doesn't work (because the reverse offset polygon differs from the source polygon enough to be unreliable).
https://mcmains.me.berkeley.edu/pubs/DAC05OffsetPolygon.pdf
For instance, given this polygon, which was offset 4 times, I want to eliminate the red shaded offset polygons.
Is there a simple way to do this?
Beta Was this translation helpful? Give feedback.
All reactions