Nodes/Avatar Graph/Mesh Delete Edgeloop
ComfyUI Node

Mesh Delete Edgeloop

Blender's Ctrl+X, minus the hole a plain delete would leave

By avatechai·Created 3 years ago·Updated 2 years ago· 264
Mesh Delete Edgeloop
  • BPY_OBJ
  • BPY_OBJ
use_face_splittrue

If you know Blender's modeling hotkeys, this is Ctrl+X on a selected edge loop - a specific, deliberately gentler cousin of Mesh_Delete. It wraps bpy.ops.mesh.delete_edgeloop, and the distinction from a plain delete matters: this doesn't punch a hole where the loop used to be, it dissolves the loop and reflows the surrounding faces to close the gap smoothly.

How it works

Select an edge loop - the ring of edges that runs around a cylindrical or tube-like piece of geometry, the kind of thing you'd select with Alt+click in Blender - and this operator removes it while merging the faces on either side into fewer, larger ones, keeping the surface intact. Compare that to selecting the same loop and running a plain delete (Mesh_Delete with type=EDGE): that leaves an actual opening. This node exists specifically to avoid that. It's the tool for reducing the loop-density of a tube, limb, or cylindrical section without leaving a gap in the mesh.

The inputs and outputs that matter

  • BPY_OBJ (optional) - the mesh with the edge loop already selected.
  • use_face_split (default true) - controls whether the operation also splits faces along the loop's direction where needed, rather than just merging them outright. Left on, it generally produces cleaner resulting topology; turning it off is more conservative about how much the surrounding faces get restructured.

Output is a single BPY_OBJ, the mesh with the loop gone and the surface sealed.

How to install it

ComfyUI Manager: search "Avatar Graph" and install. Manual:

cd ComfyUI/custom_nodes
git clone https://github.com/avatechai/avatar-graph-comfyui
cd avatar-graph-comfyui
python -m pip install -r requirements.txt

then restart. bpy==3.6.0 needs Python 3.10.x - the README's prebuilt Python-3.10 zip for Windows, a dedicated conda environment (conda create --name comfyui python=3.10) for Mac/Linux. opencv-python, mediapipe, and segment-anything also come along.

Common issues & troubleshooting

Nothing happens. This only works on a selected edge loop - if the upstream selection wasn't a proper loop, or nothing was selected at all, there's nothing here to dissolve. It's also not a substitute for a general-purpose edge-select node; you need whatever loop-selection step your graph uses to have actually run first.

Result looks messier than expected, with oddly-shaped faces where the loop used to be. Toggle use_face_split and compare - on tricky or asymmetric geometry, one setting tends to produce noticeably tidier topology than the other, and it's worth checking both rather than assuming the default is always right for your mesh.

You wanted an actual hole, not a sealed reduction. That's Mesh_Delete with type set to EDGE or VERT, not this node - Mesh_DeleteEdgeloop is specifically for removing a loop while keeping the surface watertight, so if a hole is the goal, this is the wrong tool.

Categoryblender

Inputs (2)

NameTypeDefaultDescription
BPY_OBJoptBPY_OBJ
use_face_splitoptBOOLEANtrue

Outputs (1)

NameTypeDescription
BPY_OBJBPY_OBJ