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

Clipping polygons that are entirely contained in another polygon #47

Open
GilParnon opened this issue Sep 30, 2022 · 2 comments
Open

Clipping polygons that are entirely contained in another polygon #47

GilParnon opened this issue Sep 30, 2022 · 2 comments

Comments

@GilParnon
Copy link

GilParnon commented Sep 30, 2022

When I try to do this clipping, I get just the small rectangle.
The orange is pc.AddPath(geometry, pyclipper.PT_SUBJECT, True)
In red is pc.AddPath(rectangle, pyclipper.PT_CLIP, True)
Then the result is from this. I'm not sure what exactly is causing this issue.
pc.Execute(pyclipper.CT_DIFFERENCE)
toClip
result

@pythonmobile
Copy link

Isn't it what should happen?

@flabowski
Copy link

That's the result for intersection, the difference should look differently. @GilParnon did you find the error? Can you provide a minimal working example?

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

No branches or pull requests

3 participants