Skip to content

Commit f6baf74

Browse files
Postprocessor editor, Heidenhain export and tool JSON exchange
1 parent 7d12567 commit f6baf74

97 files changed

Lines changed: 32727 additions & 19735 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎CHANGELOG.md‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
# Changelog
22

3+
## 2.1.0 - 2026-10-12
4+
5+
- Bound stock STL export to 500,000 triangles (about 24 MiB), simplifying the detached mesh when necessary without changing simulation. Report reduced quality and test Auto/maximum-quality exports through the STL importer. Fix the rotary JSON error message translation context in both CI workflows.
6+
7+
- Apply simulation-related Options, Current Program tools, WCS and Stock changes only on OK. Cancel discards drafts without rebuilding milling/turning stock; unchanged OK avoids rebuilding. Stage rotary JSON edits and automatic stock resets with their owning dialog.
8+
- Add Import and Export JSON buttons to Current Program for milling and turning tools. Export the complete current setup and validate imports before replacing matching T slots; retain geometry, offsets and custom metadata without changing Saved Library or tools.db.
9+
- Restrict Current Program tool export to `.json` destinations before writing, preventing accidental replacement of NC/MPF programs or other files with JSON. Report rejected paths in the GUI and log; test byte-for-byte preservation through the writer and file picker.
10+
- Apply G41/G42 cutter compensation to Face, Slot and Chamfer Mill using the configured diameter. Render Tap with a flat front face in milling and turning previews.
11+
- Edit postprocessors in an enlarged Settings window: catalog on the left, embedded editor on the right, and Snippets-style icon buttons below the list. New copies stay in memory until Save or OK; Cancel discards pending edits. Export only selects existing posts or imports a ready JSON using Add ready…; profile management no longer opens nested dialogs.
12+
- Add the bundled `heidanhain_itnc530` EXPANDED export target for resolved milling programs; Heidenhain remains an output format. Emit `BEGIN/END PGM`, `TOOL CALL`, `L/FMAX`, `CC` with `C/CP`, `CR`, `CYCL DEF 200/201/202/203/207`, and numeric block prefixes without `N`. Match IPA signs to DR, preserve left-hand tapping pitch, use feed-out cycle 201 for G85 and stop/retract cycle 202 for G86, and linearize arcs outside the TOOL CALL spindle plane. Display custom arc split angles, including 5400 degrees, accurately in the editor.
13+
- Keep all ten postprocessor editor tabs in the Designer UI. Put general number formatting in Format and address order in a separate Sequencing tab, where compact address tiles wrap automatically and can be reordered by drag and drop with a visible insertion marker. Show the selected address settings below the tiles; remove the preview, validation footer, address table and numeric Position field. Report save errors in a standard dialog.
14+
- Label Arc Output for the selected controller: ISO targets offer relative/absolute IJK, R and linearized output; Heidenhain offers CC with C/CP, R and linearized output while retaining the corresponding internal export mode identifiers.
15+
- Pass the configured geometry tolerance to G40 exit compensation. Detect parallel line segments using the angle between them, accounting for both segment lengths.
16+
- Split transformed spatial arcs and helices in their actual plane, preserving the normal, axial travel and exact endpoints.
17+
- Preserve the latest playback-slider request when an interrupted frame worker finishes, including requests returning to the same position. Retain cancelled workers until completion, queue new seeks until they release the timeline, and avoid blocking the GUI with `worker.wait()`. Defer window closure while retired workers are still running.
18+
- Give GPU snapshot requests a ten-second deadline, propagate export cancellation through replay and snapshot preparation, discard abandoned queued requests, and check cancellation between bounded GPU dispatches, trajectory segments and hierarchy levels. Invalidate partial GPU updates so the next frame rebuilds the texture. An OpenGL call already executing, including texture readback, cannot be forcibly interrupted.
19+
- Enforce a default 4 GiB GPU texture budget before allocation, including power-of-two padding and all RG32F mip levels, in addition to the device texture-size limit. Reject excessive requirements without silently reducing Accuracy. This budget is a fixed allocation ceiling, not a measurement of available VRAM or a guarantee against driver allocation failures. Check the budget before starting playback; show a warning and stop simulation cleanly on resource or driver failures without repeated paint exceptions.
20+
- Log milling stock startup, Accuracy, OpenGL initialization, texture allocation, frame timings and STL export results. Include CNC export format/post/encoding and cancellation, tool-list export failures/results and Current Program tool JSON import/export results. Existing NC open/save events remain available when Logging is enabled.
21+
- Pause playback, disable the slider and Stock Removal toggle, and prevent competing frame/quality requests while STL export owns the timeline. Show cancellable export progress and restore control states afterward. Rebuild the displayed frame after failed export preparation even when the timeline motion count already matches the slider.
22+
- Export the displayed, calculated milling stock directly to STL by default, without advancing replay, rebuilding the frame or refining the mesh. Merge constant-height regions exactly while keeping shared edges, through cuts and output units intact. Reuse unchanged GPU readback and initialize export tolerances from simulation Accuracy; additional linear/angular/edge refinement is optional.
23+
- Stabilize GPU surface rendering by rebasing viewing rays at the stock, solving patch intersections over a local interval and advancing between hierarchy nodes by integer cell boundaries. Avoid floating-point cancellation and one-ULP traversal stalls on virtual graphics adapters.
24+
- Prevent milling zoom from revisiting height patches at shared grid corners: choose initial cell ownership once, enforce monotone integer crossings and bound traversal by the grid's total boundary count. Preserve Accuracy and cover live speed-4 playback of `toolchange.nc` while repeatedly zooming on a native OpenGL window.
25+
- Remove grid lighting stripes from steep milling walls by filtering shading normals over neighbouring height samples; preserve ray intersections, material removal and STL geometry. Add a soft fill light so walls facing away from the main light remain readable, and cover diagonal flat/bull cutter walls with rendered GPU regressions.
26+
- Triangulate partially removed cells around their bilinear centre to avoid coincident top/bottom facets at dry corners. Keep through-cut meshes closed and consistently oriented without adding zero-height internal walls; completely removed stock exports no facets.
27+
- Add regressions for interrupted/retired worker scheduling, export ownership, frame restoration, snapshot cancellation/deadlines, GPU memory limits, partial-update invalidation, linear/angular STL refinement and oriented through-cut topology with and without export refinement.
28+
329
## 2.0.0 - 2026-10-10 - 2026-10-11
430

531
**The main feature of 2.0.0 is 3D milling stock removal on the GPU.** It adds inspection of the remaining material throughout a three-axis program, configurable surface detail and export of the current machining stage as STL, alongside the existing turning simulator.

0 commit comments

Comments
 (0)