Industrial-grade local Quad Retopology node for ComfyUI
Featuring Instant Field-Aligned Cross-Field Meshing (ZRemesher-grade), Topological Loop Alignment & Harmonic Relaxation, PyMeshFix Manifold Healing, and Adaptive Shrinkwrap Snapping.
Works on any 3D model (characters, clothing, organic creatures, props, hard-surface). 100% local, fast (<20s), zero cloud API dependencies.
-
🌪️ Instant Field-Aligned Cross-Field Engine:
- 4-RoSy (Rotational Symmetry) orientation fields & 4-PoSy position fields guided by principal surface curvatures (
$k_1, k_2$ ). -
100% Pure Quad topology (
f v1 v2 v3 v4) — 0 triangles, 0 n-gons. - >95% regular 4-valence vertices and ideal ~90° angles.
- 4-RoSy (Rotational Symmetry) orientation fields & 4-PoSy position fields guided by principal surface curvatures (
-
🎯 Topological Feature-Loop Alignment:
- Automatically identifies key anatomical and clothing transition seams (collar, waist/shirt hem, shorts hem, knees).
- Straightens master edge loops into continuous, smooth curves without micro-steps.
- Harmonically relaxes neighboring quad rings to eliminate edge distortion while preserving 100% volume.
-
🛡️ 100% Watertight Manifold Healing:
- Built-in
PyMeshFixpre-healing removes non-manifold vertices, self-intersections, and boundary holes typical in raw AI-generated 3D meshes (Hunyuan3D, Tripo, InstantMesh). - Guarantees zero dropouts and zero holes in clothing folds or armpits.
- Built-in
-
📐 Dual Format Output:
-
Clean Quad
.OBJ: Native pure quads for Blender, ZBrush, Maya, and Marvelous Designer. -
Wireframe-Embedded
.GLB: Clean quad visualizer directly in ComfyUI's native 3D viewport.
-
Clean Quad
-
✂️ Separate Fingers & Crease Preservation:
- Automatic carving of AI webbed hand meshes and feature crease alignment (
crease_anglethreshold).
- Automatic carving of AI webbed hand meshes and feature crease alignment (
cd ComfyUI/custom_nodes
git clone https://github.com/neohh/ComfyUI-AutoQuadRemesh.git
cd ComfyUI-AutoQuadRemesh
pip install -r requirements.txtEnsure instant-meshes is in your system PATH or /usr/local/bin/instant-meshes (for Linux/Docker).
# Ubuntu / Debian / Docker
sudo apt-get update && sudo apt-get install -y cmake g++ libeigen3-dev libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev
git clone --recursive https://github.com/wjakob/instant-meshes.git
cd instant-meshes
cmake -DCMAKE_BUILD_TYPE=Release .
make -j$(nproc)
sudo cp instant-meshes /usr/local/bin/| Parameter | Type | Default | Description |
|---|---|---|---|
target_quads |
INT | 7000 |
Target base quad count on body and clothing (~6k–8k for clean League of Legends style topology). |
shrinkwrap_strength |
FLOAT | 0.65 |
Snaps quads back to high-poly shape without pinching fabric folds. |
adaptive_detail_boost |
BOOL | True |
Neural Adaptive Boost: AI detects face & fingers on source image -> Geodesic surface Dijkstra -> 4x quad density with seamless 2:1 transition. |
source_image_file |
STRING | auto |
Name or path of image in input/ (set to auto to automatically find the latest uploaded character photo). |
preserve_sharp |
BOOL | False |
Locks mechanical sharp edges (best for hard-surface/props). |
show_quad_wireframe |
BOOL | True |
Renders clean quad wireframe lines in ComfyUI 3D Viewer. |
heal_mesh |
BOOL | True |
Watertight sealing via PyMeshFix before solving to prevent holes in cloth folds. |
relax_iterations |
INT | 4 |
Tangential quad relaxation iterations to square up skewed diamonds. |
engine |
LIST | instant_crossfield |
instant_crossfield (ZRemesher-grade), intelligent_custom_retopo, quadriflow_legacy. |
crease_angle |
INT | 35 |
Dihedral angle threshold (degrees) to lock edge loops along clothing seams. |
separate_fingers |
BOOL | True |
Automatically carves negative space between fused AI fingers. |
The node automatically renders a 3-view diagnostic preview directly to ComfyUI output:
- Full Body Overview: Clean large quads across torso, legs, and clothing.
- Face & Head Zoom: 4x dense quad loops capturing facial contours, nose, and eyes.
- Hands & Shorts Zoom: High-density finger cylinders meeting clean shorts hem without seam bleeding.
MIT License. Free for commercial and non-commercial use.