ComfyUI > Nodes > ComfyUI libigl > Fix Self Intersections (Removal)

ComfyUI Node: Fix Self Intersections (Removal)

Class Name

GeomPackFixSelfIntersectionsByRemoval

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

Fix Self Intersections (Removal) Description

Removes intersecting faces in 3D meshes to fix self-intersections and maintain structure.

Fix Self Intersections (Removal):

The GeomPackFixSelfIntersectionsByRemoval node is designed to address and rectify self-intersections within a 3D mesh by removing intersecting faces. This node is particularly beneficial for artists and designers who work with complex 3D models and need to ensure their meshes are clean and free of problematic intersections that can cause rendering issues or inaccuracies in simulations. By focusing on the removal of intersecting faces, this node simplifies the mesh, potentially reducing its complexity while maintaining its overall structure. The process involves detecting self-intersecting faces, removing them, and optionally filling the resulting holes to maintain the mesh's integrity. This method is advantageous for users who require a straightforward approach to fixing self-intersections without delving into more complex remeshing techniques. The node also provides a comprehensive report detailing the changes made to the mesh, including the number of faces removed and whether any holes were filled, offering transparency and insight into the operation's impact.

Fix Self Intersections (Removal) Input Parameters:

fill_holes

The fill_holes parameter determines whether the node should attempt to fill holes that result from the removal of intersecting faces. Enabling this option helps maintain the mesh's structural integrity by adding new faces to close any gaps left by the removal process. This parameter is particularly useful when preserving the mesh's overall shape is important. The default value is typically set to True, allowing for automatic hole filling, but it can be disabled if the user prefers to handle hole filling manually or through other methods.

fix_normals

The fix_normals parameter specifies whether the node should correct the normals of the mesh after the removal of intersecting faces. Normals are crucial for accurate lighting and shading in 3D rendering, and incorrect normals can lead to visual artifacts. By enabling this parameter, the node ensures that the normals are recalculated and aligned correctly, enhancing the visual quality of the mesh. The default setting is usually True, ensuring that normals are fixed automatically, but users can disable it if they wish to manage normals separately.

Fix Self Intersections (Removal) Output Parameters:

result_mesh

The result_mesh output parameter provides the modified 3D mesh after the self-intersection removal process. This mesh will have the intersecting faces removed, and depending on the input parameters, may also have holes filled and normals corrected. The result_mesh is the primary output of the node, representing the cleaned and potentially simplified version of the original mesh, ready for further processing or rendering.

report

The report output parameter is a detailed textual summary of the operations performed by the node. It includes information about the initial state of the mesh, the number of faces removed, whether holes were filled, and if normals were fixed. Additionally, it provides a status update on the success of the operation and any warnings if a significant number of faces were removed. This report is valuable for users to understand the impact of the node's operations and to make informed decisions about further processing steps.

Fix Self Intersections (Removal) Usage Tips:

  • Always review the report output to understand the changes made to your mesh and to ensure that the removal of intersecting faces has not overly simplified your model.
  • Consider enabling the fill_holes parameter if maintaining the mesh's structural integrity is crucial for your project, especially if the mesh will be used in simulations or animations.

Fix Self Intersections (Removal) Common Errors and Solutions:

Re-detection failed: <error_message>

  • Explanation: This error occurs when the node attempts to re-detect self-intersections after the removal process but encounters an issue, possibly due to invalid mesh data or computational errors.
  • Solution: Ensure that the input mesh is valid and free of other issues before running the node. If the problem persists, try manually running a self-intersection detection process to identify and resolve any underlying issues.

⚠ Warning: Large number of faces removed. Consider using perturbation or remeshing methods for better results.

  • Explanation: This warning indicates that a significant portion of the mesh's faces were removed, which might lead to an overly simplified or distorted model.
  • Solution: Evaluate the necessity of using this node for your specific mesh. If the removal of faces is too extensive, consider using alternative methods such as perturbation or remeshing to achieve a more balanced result.

Fix Self Intersections (Removal) 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.