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

Circle region needs better MC fill process #45

Open
ehkropf opened this issue Nov 24, 2014 · 4 comments
Open

Circle region needs better MC fill process #45

ehkropf opened this issue Nov 24, 2014 · 4 comments

Comments

@ehkropf
Copy link
Collaborator

ehkropf commented Nov 24, 2014

In the case of a multiply connected domain, the circle region will on occasion "poke holes" in a filled patch by painting background colour on top. Is there a way to create a multiply connected patch and just draw that?

@tobydriscoll
Copy link
Member

What complicates it is that you have to break the boundary at each circle and then hop from circle to circle, avoiding all crossings. Even so I wonder whether the seams of the process might be visible when they don't align with coordinate axes.

What is the objection to poking holes?

@ehkropf
Copy link
Collaborator Author

ehkropf commented Jan 19, 2015

I just had an idea for an algorithm which would cut the domain in the right way. It needs more careful thought, but I think it might work.

Let's suppose one of us got a "cutting" algorithm to work. The seams wouldn't be a problem, because we could just draw the seams in the same color as the fill, making the line wide enough to cover what the fill doesn't. Then draw the outer boundaries on top of the fill.

@ehkropf
Copy link
Collaborator Author

ehkropf commented Jan 19, 2015

Poking holes would work fine if it was an actual hole to the axis underneath, so to speak. If someone wants a grid under the circle domain plot, the holes might have the axis color, but you wouldn't see the grid through the holes, since they're really just painted on top of the domain fill.

@ehkropf
Copy link
Collaborator Author

ehkropf commented Jan 19, 2015

Though having said that, maybe there could be some kind of alpha channel mask to get actual poked holes.

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