It looks like you're new here. If you want to get involved, click one of these buttons!
Hi, I am facing the following issue while running in python. Please guide to solve this.
Updated code with and operation
There is no AND operation between two polygons. Reason: in the generic case, the output of a boolean operation will not be a single polygon.
Use the Region class instead:
diff = pya.Region(circle) & pya.Region(box)