Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support of polygons with interior holes #21

Open
eshira opened this issue Jun 2, 2017 · 0 comments
Open

Support of polygons with interior holes #21

eshira opened this issue Jun 2, 2017 · 0 comments

Comments

@eshira
Copy link

eshira commented Jun 2, 2017

Request for support of polygons with interior holes. I think the core of the code will work as is if there is some way to represent them.

For now my hack is this: when creating the list of polygons for the graph creation, specify the exterior polygon ring first, then put a blank polygon (empty list) in front of every matching interior ring. Then in the init method for the graph I catch those empty lists and rewind the pid by one. The resulting behavior for the visibility graph seems fine so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants