/curiomesh-skills:curiomesh-fix-bad-facesfrom curiomesh-skills
Finds and fixes bad faces (inward, folded, crossing, sunk, slivers, duplicates) in a CurioMesh retopo result using a measure-fix-remeasure loop that never worsens the mesh.
Ships in curiomesh-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Uses curiomesh_fix.py and curiomesh_run.py from the sibling skill curiomesh-retopo (its scripts/ folder, next to this skill's folder). Find Blender and the add-on the way that skill says ($BLENDER, PATH, common install paths; --addon <repo folder> for a checkout).
| Kind | Meaning | First fix |
|---|---|---|
inward | face points into the model | Flip Inward, then Untangle |
sunk | face sits under your original surface | Untangle |
folded_over, crossing | faces fold or cut through each other | Untangle, then Patch |
flat, duplicate | zero-area or doubled faces | Clean Up |
bent | badly warped quad | Relax, then Patch |
overlap | face lying on another | Clean Up, then Patch |
sliver, pinched, pole, concave | untidy, not wrong | leave alone unless the user asks |
Use .obj or .blend for the result you fix (retopo with --out result.obj). A .glb stores triangles only, so every quad comes back as two triangles and the counts no longer match the retopo report.
Measure only (no --fix). The original is needed so "inward" is known:
"$BLENDER" -b --factory-startup --python <retopo skill>/scripts/curiomesh_fix.py -- RESULT.obj --original ORIGINAL.obj --report m0.json
before.bad is the count of bad faces, before has the count per kind, bad_face_ids lists them (capped at 2000).
If before.bad is 0, stop: nothing to fix.
Fix. Start with --fix ALL (Clean Up, Flip Inward, Untangle, Relax, Patch in turn; a move that makes it worse is undone). For one kind, name the fix from the table:
... curiomesh_fix.py -- RESULT.obj --original ORIGINAL.obj --fix FLIP,UNTANGLE --out fixed1.obj --report m1.json
To touch only some faces: --faces 12,40-55 (numbers from bad_face_ids).
Read m1.json: before, after, steps (each with kept, bad_before, bad_after). The script keeps a step only when it lowers bad, so after.bad is never above before.bad.
Loop: take fixed1.obj as the new RESULT and go to step 3 with a different fix list (for example what is left: if folds remain, UNTANGLE,PATCH). Stop when:
after.bad is 0, orbad (improved is false).There is no round cap: keep going while the bad-face count drops, and stop when a round gains nothing. (curiomesh_fix.py does this itself with a --fix list: it runs the list again after every round that gained something, and the report shows rounds.)
Keep the best file. Never overwrite the original or the last good result; write each round to a new file and compare after.bad.
issues.per_part in the retopo report): rerun the retopo with --keep-original-bad. That puts the original faces back on every part with a problem spot. The report's issues and kept_original_parts show the effect. The face count rises.curiomesh-retopo with a lower Detail.--fix steps all show kept: false and bad faces remain: report the count and kinds to the user and stop. Do not loop.--original: Flip Inward and Untangle cannot run (the report says so). Ask for the original file.curiomesh-agent has the same fixes as commands (fix.run, autofix.run) with History to step back.Give before and after bad and the per-kind counts, which steps were kept, the output file, and what is still bad.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/curiomesh-agentDrive CurioMesh command by command (settings, Auto, Tidy Tools, Auto Fix, parts, History, bake, export), in a Blender that is open or a headless one, through the CurioMesh MCP server or a mailbox folder. Also sends bad parts out for better topology and brings them back (parts exchange). Use when the user wants an agent to steer CurioMesh step by step and read the numbers, not run one file-to-file job./curiomesh-batch-and-lodsRetopologise many model files in one go, make LOD sets (_LOD0, _LOD1, _LOD2) for a game engine, and bake a normal map with CurioMesh in Blender, headless. Use when the user has a folder of meshes to reduce, wants LODs, or wants detail baked to a normal map./curiomesh-npx claudepluginhub curiocrafter/curiomesh --plugin curiomesh-skillsOther plugins' skills for the same job