pyclipper
pyclipper copied to clipboard
Clipping polygons that are entirely contained in another polygon
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)

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