Commit Graph

11 Commits

Author SHA1 Message Date
4f267e654a feat: refactor MNMesh path to read-then-create pattern
Replace polyop.detachFaces with a two-phase approach: Phase 1 reads
all face vertex positions into plain Python tuples without mutating
the source mesh, Phase 2 creates new PolyMeshObject nodes from the
cached data. This eliminates the index-shifting sequential dependency
that forced reverse iteration and removes per-call detachFaces overhead.
2026-07-21 21:19:33 +03:00
5dad8b8ddb feat: throttle processEvents() to every 20 faces during explode loop 2026-07-21 21:16:54 +03:00
353ad28c15 feat: suppress per-face undo entries during explode loop
Wrap per-face scene operations in `with pymxs.undo(False):` inside
both convert_to_triangle_faces() and convert_to_mnmesh_faces().
The outer `with pymxs.undo(True, "Explode Geometry"):` in do_explode()
still provides a single undo group entry, so Ctrl+Z reverts the
entire operation in one step while eliminating per-face undo overhead.
2026-07-21 21:13:46 +03:00
b1c62cb28d feat: disable scene redraws during explode loop
Wrap the explode operation in disableSceneRedraw/enableSceneRedraw
with a try/finally to ensure redraws are always re-enabled. This
prevents per-face viewport updates during the loop, with a single
redrawViews() call in the finally block after completion.
2026-07-21 21:11:10 +03:00
d2439652a7 feat: add toggle debug messages & window sizing changes 2026-06-24 13:13:13 +03:00
8c438daf99 feat: reording timing check 2026-06-24 12:37:28 +03:00
5438bd6d5c feat: print explode duration to Listener on success
Measure the explode operation with time.perf_counter() and print a
"completed successfully in N seconds" summary to the MAXScript Listener
after a successful run. Uses a direct print() so the summary always shows
regardless of the debug-messages toggle.

Mirrored to Bundle2/Contents/python/explode_geometry.py.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 12:20:58 +03:00
6478fabfe3 chore: remove accidentally committed __pycache__ artifacts
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 11:51:29 +03:00
35c63870f0 feat: move progress panel above explode button and add debug logging toggle
Relocate the progress panel so it renders above the Explode button, and
add a "Show Debug Messages" checkbox to the Explode Options. Replace the
print() calls with a stdlib logging.Logger ("ExplodeGeometry") that writes
to the MAXScript Listener via stdout. When the checkbox is checked the
logger level is DEBUG (all messages); otherwise it is WARNING so only
warning/critical messages pass through.

Mirrored to Bundle2/Contents/python/explode_geometry.py.

Closes #3

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 11:51:17 +03:00
bc719d0d8d feat: wire progress panel show/hide, node labels, and per-face progress callback
- Show progress panel when Explode begins, hide before dialog closes
- Update node name and counter labels per object during processing
- Add on_progress callback to convert_to_triangle_faces and convert_to_mnmesh_faces
- Mirror all changes to Bundle2

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-23 19:46:11 +03:00
40415ee9fc feat: add python script to menu for 2027 2026-06-19 16:55:17 +03:00