Boolean operation

Hi, I am facing the following issue while running in python. Please guide to solve this.

Comments

  • Updated code with and operation

  • edited May 2020

    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)
    

    Matthias

Sign In or Register to comment.