Boolean Shape Operations in LibreOffice Draw
LibreOffice Draw provides built-in geometric Boolean tools that allow users to create complex vector graphics by combining, cutting, and overlapping basic 2D shapes. These vector operations—specifically Merge, Subtract, and Intersect—alter the paths of selected objects to generate a new, single shape based on their spatial overlap and layer order.
Accessing the Boolean Tools
To use Boolean tools in LibreOffice Draw, you must select at least two overlapping 2D vector objects. Once selected, access the operations through either of the following methods:
- Top Menu Bar: Navigate to Shape and choose Merge, Subtract, or Intersect.
- Context Menu: Right-click the selected objects, hover over Shapes, and select the desired operation.
1. Merge (Boolean Union)
The Merge tool creates a geometric union of all selected objects.
- How it works: It fuses the outlines of two or more overlapping shapes into one contiguous polygon, removing all interior overlapping lines.
- Styling outcome: The resulting single object inherits the fill color, stroke color, and line properties of the bottom-most object in the layer stacking order (z-order).
2. Subtract (Boolean Difference)
The Subtract tool cuts away geometry using overlapping shapes.
- How it works: The shapes positioned higher in the layer stack (the front objects) act as cutting tools to remove geometry from the bottom-most shape. Once the cut is performed, the cutting objects are deleted.
- Stacking requirement: The object you want to keep must be arranged beneath the object(s) used to cut. You can adjust the layer order beforehand by right-clicking an object and choosing Arrange > Send to Back or Bring to Front.
3. Intersect (Boolean Intersection)
The Intersect tool retains only the shared area among selected shapes.
- How it works: It discards all non-overlapping regions and leaves behind a single shape representing the exact area where all selected objects overlap.
- Styling outcome: Like the Merge tool, the resulting intersection shape adopts the fill and outline attributes of the bottom-most object.
Boolean Operations vs. Grouping and Combining
It is important to distinguish Boolean tools from other object management features in Draw:
- Group (
Ctrl + Shift + G): Keeps original shapes distinct and editable while treating them as a single unit for movement and resizing. - Combine (
Ctrl + Shift + K): Creates a compound path with transparent overlapping areas (an XOR operation) rather than permanently recalculating the boundary paths like Boolean Merge or Intersect.