ComfyUI > Nodes > ComfyUI libigl > Boolean Operation

ComfyUI Node: Boolean Operation

Class Name

GeomPackBooleanOp

Category
geompack/boolean
Author
PozzettiAndrea (Account age: 2240days)
Extension
ComfyUI libigl
Latest Updated
2025-12-22
Github Stars
0.06K

How to Install ComfyUI libigl

Install this extension via the ComfyUI Manager by searching for ComfyUI libigl
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI libigl in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Boolean Operation Description

Performs CSG operations on 3D meshes using `libigl` and `CGAL` for precise shape manipulation.

Boolean Operation:

The GeomPackBooleanOp node is designed to perform Constructive Solid Geometry (CSG) operations on 3D meshes, allowing you to combine or modify complex shapes through boolean operations such as union, intersection, and difference. This node leverages powerful computational geometry libraries, specifically libigl with the CGAL backend, to ensure precise and efficient processing of mesh data. By converting mesh vertices and faces into numpy arrays, it facilitates the execution of boolean operations, which are essential for creating intricate 3D models in digital art and design. The node is capable of preserving metadata from the input meshes, ensuring that important information is retained throughout the operation. This makes it an invaluable tool for AI artists looking to manipulate 3D geometry with accuracy and ease.

Boolean Operation Input Parameters:

mesh_a

mesh_a is the first input mesh on which the boolean operation will be performed. It consists of vertices and faces that define the 3D shape. The quality and complexity of this mesh can significantly impact the result of the operation, as it serves as one of the primary components in the boolean calculation.

mesh_b

mesh_b is the second input mesh used in the boolean operation. Like mesh_a, it is defined by its vertices and faces. The interaction between mesh_a and mesh_b through the specified boolean operation (union, intersection, or difference) will determine the final output mesh.

operation

The operation parameter specifies the type of boolean operation to be performed. It accepts string values: "union", "intersection", or "difference". Each option dictates how the two input meshes will be combined or modified. For instance, "union" merges the two meshes, "intersection" finds the common volume, and "difference" subtracts one mesh from the other. This parameter is crucial as it defines the nature of the transformation applied to the input meshes.

Boolean Operation Output Parameters:

result

The result is the output mesh generated after applying the specified boolean operation on mesh_a and mesh_b. It includes the vertices and faces that define the new 3D shape, reflecting the changes made by the operation. The result also retains metadata from mesh_a, providing context about the operation and the input meshes.

info

The info parameter provides a detailed summary of the boolean operation, including the type of operation performed, the computational engine used, and statistics about the input and output meshes, such as the number of vertices and faces. This information is valuable for understanding the impact of the operation and verifying the integrity of the result.

Boolean Operation Usage Tips:

  • Ensure that both input meshes (mesh_a and mesh_b) are properly defined and free of errors, as this can affect the accuracy of the boolean operation.
  • Choose the appropriate operation type based on the desired outcome. For example, use "union" to combine meshes, "intersection" to find common areas, and "difference" to subtract one mesh from another.
  • Review the info output to verify the success of the operation and to understand the changes made to the mesh structure.

Boolean Operation Common Errors and Solutions:

Unknown operation: <operation>

  • Explanation: This error occurs when an invalid operation type is specified. The node only accepts "union", "intersection", or "difference" as valid operations.
  • Solution: Ensure that the operation parameter is set to one of the accepted string values: "union", "intersection", or "difference".

[Boolean] libigl+CGAL success: <number> vertices, <number> faces

  • Explanation: This message indicates a successful boolean operation using the libigl and CGAL backend, providing the number of vertices and faces in the resulting mesh.
  • Solution: No action is needed as this is a confirmation of success. Use the info output to review the operation details.

Boolean Operation Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI libigl
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.