You can use the following boolean operations for construction of more complex geometrical objects (2D & 3D elements):
-
Fuse - creates a shape from two shapes.
-
Common - transforms the common part of two objects into an independent object.
-
Cut - cuts one shape with another.
-
Section - creates a section between two shapes.
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).
Besides, you can use advanced TUI commands performing these operations independently from each other:
- geompy.MakeFuse(Shape1, Shape2), where Shape1 and Shape2 is the second argument of Fuse operation;
- geompy.MakeCommon(Shape1, Shape2), where Shape1 and Shape2 is the second argument of Common operation;
- geompy.MakeCut(Shape1, Shape2), where Shape1 and Shape2 is the second argument of Cut operation;
- geompy.MakeSection(Shape1, Shape2), where Shape1 and Shape2 is the second argument of Section operation;
Our TUI Scripts provide you with useful examples of the use of Boolean Operations.