Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm attempting to recursively offset polygons until they reach "completion." I'm having a hard time wrapping my brain around the specifics of what constitutes "completion" and am wondering if there's some built-in way to achieve this using PolyTrees or orientation or something.
Please note than in all examples below I am aware these need to be divided into sets of polylines with holes. I have only shown the offset results of the groups in each giving me problems.
Example 1 (Problem):
My polyline with holes offsets inward until it eventually results in only one polyline. Continuing to inwardly offset this polygon returns the incorrect result shown below:
Example 1 (Desired Solution):
Here is what I would LIKE to achieve. I got this by stopping recursion after the result of the inflation has fewer polylines than the input paths
Example 2 (Problem):
Unfortunately, this method doesn't work in all situations. As shown below, if I prevent recursion when the number of polylines is reduced, I get this result
Example 2(Desired Solution):
Here is what I would LIKE to achieve.
I'm sure I must be missing something simple. I'm essentially trying to generate the rabbit example shown on your front page! Any and all help is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions