T-A1 — Extract mesh_ops/ from the existing workflow nodes
Epic: Epic A — Unified mesh-ops registry (foundation) Priority: P0
Context
Mesh-editing logic (repair, decimate, smooth) already exists and works, but it's scattered across individual workflow-node processors (mesh-repair/processor.py, mesh-optimizer/processor.ts, mesh-smoother/). Neither the chat agent nor a future edit panel can call it directly. This ticket extracts that logic into one shared registry that workflow nodes, the agent, and the UI can all consume — the foundation everything else in Epic A/B/C depends on.
Scope
- [ ] Create
api/services/mesh_ops/: a registry of{ id, label, params_schema, fn, destructive?, undoable?, category }entries, modeled ongenerator_registry.py. - [ ] Migrate the logic from
mesh-repair/processor.py(dedupe, non-manifold, degenerate, fill holes) into registry op(s). - [ ] Migrate
smooth(already inoptimize.py) and themesh-optimizer/mesh-smootherlogic into the registry — decide which decimate implementation to keep (pymeshlab vs meshopt) instead of keeping both. - [ ] Workflow nodes become thin wrappers that call the registry (no regression: identical results to before the migration).
- [ ] Generic endpoint
POST /optimize/op/{op_name}+GET /optimize/ops(list + schemas + categories).
Acceptance criteria
A regression test confirms mesh-repair/mesh-optimizer/mesh-smoother produce identical output before/after the migration; the same ops are callable via /optimize/op/.
From ROADMAP_0.5.md.
Hi! I'd like to take this issue and start working on the unified mesh-ops registry. I'll preserve the current workflow-node behavior and cover the migration with regression tests as requested.
Once the PR is ready, please feel free to request any changes or adjustments — I'll be happy to adapt it to the direction you want for v0.5.
/assign
✅ Assigned to @DrHepa. Comment /unassign if you can no longer work on this. Open a PR that includes Closes #295 in its description when you're ready for review.