ComfyUI > Nodes > ComfyUI libigl > Connected Components

ComfyUI Node: Connected Components

Class Name

GeomPackConnectedComponents

Category
geompack/analysis
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

Connected Components Description

Identifies and labels disconnected 3D mesh parts using `trimesh` for structural analysis.

Connected Components:

The GeomPackConnectedComponents node is designed to analyze 3D mesh data by identifying and labeling disconnected parts within the mesh. This node utilizes the trimesh library's graph.connected_components() method to detect distinct regions in a mesh based on face adjacency. Each disconnected component is assigned a unique part_id, which helps in distinguishing different parts of the mesh. This functionality is particularly beneficial for tasks that require understanding the structural composition of a mesh, such as 3D modeling, animation, and simulation. By processing a list of meshes, the node can efficiently handle batch operations, making it a powerful tool for artists and developers working with complex 3D models.

Connected Components Input Parameters:

meshes

The meshes parameter is a list of 3D mesh objects that you want to analyze for connected components. Each mesh in the list is processed to identify its disconnected parts. The parameter does not have explicit minimum or maximum values, but it should contain valid mesh objects that can be processed by the trimesh library. The default value is an empty list, meaning no meshes will be processed unless specified.

Connected Components Output Parameters:

result_meshes

The result_meshes output is a list of mesh objects that have been processed to include the part_id attribute. This attribute labels each face of the mesh with an identifier corresponding to the connected component it belongs to. Additionally, metadata about the number of components and their details is stored within each mesh, providing valuable insights into the mesh's structure.

num_components

The num_components output provides the total number of connected components identified within each mesh. This information is crucial for understanding the complexity and segmentation of the mesh, allowing for further analysis or processing based on the number of distinct parts.

Connected Components Usage Tips:

  • Ensure that the input meshes are properly formatted and free of errors to avoid processing issues. Valid mesh objects are essential for accurate component detection.
  • Use the part_id attribute in the output meshes to visualize and differentiate between the connected components. This can be particularly useful in applications like 3D printing or animation, where understanding the mesh's structure is critical.
  • For large batches of meshes, consider running the node in a batch processing mode to efficiently handle multiple files and save time.

Connected Components Common Errors and Solutions:

Invalid mesh input

  • Explanation: This error occurs when the input mesh is not properly formatted or contains errors that prevent it from being processed.
  • Solution: Verify that the input meshes are valid and compatible with the trimesh library. Check for any issues in the mesh data, such as missing vertices or faces, and correct them before processing.

No connected components found

  • Explanation: This error indicates that the node was unable to identify any connected components within the mesh.
  • Solution: Ensure that the mesh is not a single, continuous surface without any disconnected parts. If the mesh is expected to have components, check for issues in the mesh structure that might be causing the detection to fail.

Connected Components 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.