Skip to content

Is it possible for the polygon to "enclose" a hole [keyholing]? #820

Answered by AngusJohnson
Sachaaaaaa asked this question in Q&A
Discussion options

You must be logged in to vote

I've created a fairly simple keyholing solution in the attached zip file (based on the logic I outlined above).
It also allows for any level of nested polygons (where holes contain inner polygons etc).
And I'm fairly confident (but not certain) that solutions won't contain self intersections.

[Zip file removed - see updates below]

Edit: While the code is fairly simple, I haven't (yet) separated out the various components into separate files (so there's currently keyholing code and Polytree text streaming code and testing code all mixed together).

Replies: 7 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Sachaaaaaa
Comment options

You must be logged in to vote
1 reply
@Sachaaaaaa
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants