In GEOM for construction of more complex geometrical objects (2D & 3D elements) you can use the following boolean operations:
There is a general TUI command covering all these operations, which can be used alongside with separate commands for each operation.
geompy.MakeBoolean(Shape1, Shape2, Operation), where Shape1 is the first argument and Shape2 is the second argument of Boolean operation, Operation is a type of the Boolean operation (1 – Common, 2 – Cut, 3 – Fuse, 4 – Section).
Our TUI Scripts provide you with useful examples of the use of Boolean Operations.