modly icon indicating copy to clipboard operation
modly copied to clipboard

T-A1 — Extract mesh_ops/ from the existing workflow nodes

Open lightningpixel opened this issue 2 months ago • 3 comments

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 on generator_registry.py.
  • [ ] Migrate the logic from mesh-repair/processor.py (dedupe, non-manifold, degenerate, fill holes) into registry op(s).
  • [ ] Migrate smooth (already in optimize.py) and the mesh-optimizer/mesh-smoother logic 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.

lightningpixel avatar Sep 04 '26 20:09 lightningpixel

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.

DrHepa avatar Sep 05 '26 08:09 DrHepa

/assign

DrHepa avatar Sep 05 '26 11:09 DrHepa

✅ 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.

github-actions[bot] avatar Sep 05 '26 11:09 github-actions[bot]