Commit Graph
2665 Commits
Author SHA1 Message Date
ajandClaude Opus 5.5 5bc39be8ca fix(fill): refill clamp gaps when Ctrl+F fills one part
The copy tool's Ctrl+F fills through FillGroup, which only dropped the
parts that hit a clamp. A single part now fills through FillItem, so it
also takes the gaps those drops leave (N26-2J7: 194 -> 195 parts).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:31:25 -05:00
ajandClaude Opus 5.5 6a10f2a959 docs: drop PEP mentions that explain nothing
The sequence-method numbering note and the overlap benchmark's data source
named PEP without a reason; mentions that explain behavior caused by
PEP-converted data stay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:25:32 -05:00
ajandClaude Opus 5.5 c29b242fc1 docs(heat): drop the PEP numbering note from the sequencer section
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:25:32 -05:00
ajandClaude Opus 5.5 d54ad5330a feat(simulator): show the heat under the cursor when the heat map is visible
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:19:14 -05:00
ajandClaude Opus 5.5 9a5feb6fbc fix(simulator): update the heat message at most once a second while playing
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:16:49 -05:00
ajandClaude Opus 5.5 af999ba5d6 perf(simulator): resume heat replays from checkpoints and vectorize the step
Scrubbing the Cut Simulator backward reset the heat model and replayed
from zero, so every frame cost a full run (~75 ms on N26-2EF, over a
second at 1/32 in cells).

- A straight run from the start now keeps checkpoints (temperature,
  peak, cursors) about every 500k cell updates, within 32 MB; the
  pieces are rebuilt from the event cursor. Going back, or jumping
  more than eight steps ahead, resumes from the latest checkpoint a
  straight run to the target passes, so the state is exactly that
  run's. Seeks on N26-2EF drop from 12-150 ms to about 1 ms.
- The diffusion step runs branch-free on Vector<float> with neighbor
  links precomputed as 0/1 weights when pieces change, and splits
  across processors on grids of 65,536 cells or more. A missing link
  adds a zero, so results stay bit-identical.
- Rises below 1e-30 K are flushed to zero: the heat front passed
  through subnormal floats, which made long runs 2-4x slower. Only
  cells below ~3e-18 K change, by at most 2e-25 K; N26-2EF's end state
  is bit-identical.

A full run on N26-2EF falls from ~150-180 ms to ~15-40 ms, so the
automatic cell size's work budget rises from 20M to 60M cell updates
(still about a tenth of a second); full sheets keep 0.5 in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:09:13 -05:00
ajandClaude Opus 5.5 71196866d7 feat(simulator): pick finer heat cells for small plates
The heat map's 0.5 in cells were too coarse to show heat trapped in
small parts such as washer rings. Unless a cell size is set, cells now
halve from 0.5 in down to 1/16 in while a full replay stays within 20
million cell updates (about a quarter second), since scrubbing back
replays from the start. Full sheets with long cuts keep 0.5 in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:09:13 -05:00
ajandClaude Opus 5.5 d4dfde5126 feat(simulator): move inputs to a Settings tab and time with the nest's machine
The Cut Simulator had grown a row per input and was crowding the
window. The slider now leads, with the time under it, then the transport
and four equal jump buttons spanning exactly the slider's track. Part,
drawing, motion and the heat view sit on a Status tab; the feeds,
pierce, heat input and etch choice move to a Settings tab, so the window
is shorter and the time stays visible while settings change.

The Acceleration picker is gone: the simulator always times with the
nest's machine (Nest > Machine), shown by name on the Settings tab, and
falls back to full speed when the nest has none. Calculate Cut Time's
remembered machine is left alone. The Avalonia simulator follows suit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 12:31:48 -05:00
ajandClaude Opus 5.5 c96666b59c fix(simulator): take each part's perimeter as the posts do
The cut timeline called a contour exterior only when it closed and ran
clockwise, while the posts (ContourWinding.PerimeterIndex, L4/L2 on the
CI Fiber) take each part's contour enclosing the largest bounding box,
closed or not. A perimeter left open at a tab was therefore timed at the
hole feed, and the heat map dropped the whole part as a cutout slug with
its heat: on N26-2ED every washer showed no heat at all. The timeline now
uses the posts' rule, so tabbed or counterclockwise perimeters take the
outside feed and stay in the heat map as cut-free parts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 10:15:45 -05:00
ajandClaude Opus 5.5 41e8e9496f feat(simulator): lose plate heat into the support slats
The heat model now loses heat through the bottom face into the bed the
sheet rests on when ThermalParameters.SupportBed is given. Each cell gets
the share of its area over a slat's top (SupportSlats.SlatsIn) or a grid
point's square pad (SupportGrid.PointsIn, GridContactSize), placed for the
plate's quadrant and computed by overlap rather than snapped to cells.
That share times ContactCoefficient (200 W/m2K by default, an effective
estimate to calibrate; slats get no temperature of their own) is added to
the air loss as a per-cell exponential decay, which stays stable. Without
a bed the model is unchanged. The Cut Simulator passes the plate's bed and
says in the heat label whether slats or the grid cool the sheet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 22:47:25 -05:00
ajandClaude Opus 5.5 8420036530 docs(heat): name FLIR readings as what unparks the heat-aware sequencer
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 22:47:18 -05:00
ajandClaude Opus 5.5 97055c98be feat(sequencing): add a parked heat-aware part sequencer
Add SequenceMethod.HeatAware (100, outside PEP's numbering) and
SequenceParameters.HeatWeight. HeatAwareSequencer orders parts forward
by travel seconds plus the weight times the heat estimated where each
part is cut, from HeatSpreadEstimate: a Gaussian blob per finished part
that widens with conduction and fades with surface loss. Without a
thickness it is nearest neighbor. PlateSequencing.Apply takes the
sheet's thermal parameters for it and still places cut-offs as before.

The method and weight persist in the cutting settings DTO. Plan Cutting
does not use the method and no UI offers it: its strict search refuses
rapids over parts cut free, so a heat-spreading order needs 53-78 head
raises per plate on the measured nests. docs/plate-heat-map.md records
the numbers; revisit once thermal readings calibrate the model.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 22:47:18 -05:00
ajandClaude Opus 5.5 1403517184 feat(simulator): estimate plate heat buildup during a cut
Add PlateHeatSimulation, a grid model driven by the cut simulation's
timed moves: cutting and piercing add absorbed power under the torch,
heat conducts within each piece and is lost from both faces. Finished
cutouts drop their slug and its heat; a finished outside contour cuts
the part free of the skeleton so no heat crosses the kerf.

The Cut Simulator gains a Heat layer (Now / Peak so far) with the
absorbed power as an input, colored against the 99.5th percentile so
single-cell pierce spikes don't wash out area buildup. Temperatures are
relative estimates for comparing cut orders; see docs/plate-heat-map.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 22:47:18 -05:00
ajandClaude Opus 5.5 55e8ea6084 feat(engine): grow edge strips with Expand Spacing
Expand Spacing widened gaps between parts but left each part's strip to
the sheet edge at the plate's edge spacing, so past twice that spacing
the edge strip became the thinnest web on the plate. A strip takes heat
from one cut while a web between parts takes it from two, so each edge
strip now holds at least half the spacing (never less than EdgeSpacing).

The pair search pushes edge parts inward and only accepts a spacing
whose strips hold. The pattern stretch sizes each axis's strips from
the smallest gap that axis widens, so stretching along the rows before
the rows open does not use up the edge room.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 22:11:45 -05:00
ajandClaude Opus 5.5 6834f2905a fix(ci): expect a blank thickness name on migrated legacy nests
Server schema v20 (6b161d7a) adds a thicknessName column, so migrated
legacy records now report thicknessName: "" and the Server image smoke's
legacy-vs-migrated manifest comparison failed on every master push since.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:23:27 -05:00
ajandClaude Opus 5.5 59f5a32754 fix(core): read an absolute program's end point from its last code
Program.EndPoint started its backward search at Codes.Count, one past the
last code, so every absolute-mode program threw an
ArgumentOutOfRangeException, including through Timing.GetTimingInfo for
cut-time estimates. Start at Count - 1; an empty program still returns
the origin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:13:30 -05:00
ajandClaude Opus 5.5 ebd0d4d9a9 feat(mcp): export DXF/SVG, post G-code, set sheet outlines
Agents could bring drawings in but only save .nest files, and could not
describe an irregular sheet. New tools: export_plate and export_drawing
(DXF/SVG/placement text, as File > Export), list_posts and post_nest
(behind the same pre-post verification gate as desktop and console, with
consent per call), and set_plate_outline (as the console's --outline).
The shipped posts now copy to Posts/ beside the server on build and publish.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:02:41 -05:00
ajandClaude Opus 5.5 b21adf3226 fix(mcp): keep machine, bed and common lines on save
save_nest rebuilt the nest without the loaded nest's machine, common-line
usage and minimum remnant size, and re-adding plates reset their support
bed. Building the nest moves to NestSession.Snapshot, which keeps them, so
posting can share it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:02:41 -05:00
ajandClaude Opus 5.5 97c80b2c9b feat(reports): make material and thickness stand out
Operators read the part spacing beside the thickness as the thickness.
Material and thickness now sit in a larger, shaded band under each page
title, part spacing moves away from it, and the thickness reads
"3/8 (0.375 in)" like the rest of the app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:02:41 -05:00
ajandClaude Opus 5.5 6b161d7a8b feat(data): store a nest's thickness name and show it
Nests showed only the decimal (0.135), while the shop thinks in gauges.
A nest now keeps a ThicknessName in its file, record and the server
(schema v20), set from Nest Information's new box, which suggests the
machine's name or the nearest standard gauge. The Open list, status bar
and reports show "10 ga (0.135)"; nests saved without a name get one
looked up for display only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:02:41 -05:00
ajandClaude Opus 5.5 7d0a81b72f Merge origin/master into the Avalonia port work
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 19:09:54 -05:00
ajandClaude Opus 5.5 cabcec642e fix(avalonia): lock the nest while the simulator opens and keep a dragged cut-off selected
Simulate Cutting took its view-only lock only after reading the machines,
so Auto Nest or Nest > Edit started in that wait ran under the open
simulator, and closing it restored a stale lock that left the plate
refusing edits. The lock is now taken before the read and released if
the simulator does not open.

A cut-off drag that changed how many segments the line is trimmed into
rebuilt the selection by part index, which drops selected cut-offs; the
view now keeps them by reference while the plate is the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 19:09:40 -05:00
aj a85b0cc45f Merge M19 cut time and cutting simulation into the Avalonia port work
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	OpenNest.Avalonia/MainWindow.axaml
2026-11-30 18:56:49 -05:00
ajandClaude Opus 5.5 59d263abda feat(avalonia): calculate cut time and simulate cutting
Plate > Calculate Cut Time and Nest > Calculate Cut Time ask for the
outside feed, rapid, pierce time, hole feed, acceleration machine and
etch choice (remembered in the settings both apps share, saved however
the dialog closes, as WinForms), then show the timing as the WinForms
Timing Information window.

Plate > Simulate Cutting and its toolbar button open the Cut Simulator:
play and pause at 1x to 250x, restart and end, part and cutout jumps,
move stepping with the arrow keys, scrubbing, and the time, part,
drawing and motion at the playhead, retimed as the feeds change and
following the shown plate. The plate view draws the cut trail, travel,
the torch and pierces, and mutes parts and cut-off segments the torch
has not reached. While it is open the nest is view-only, as WinForms:
only the plate view and its header stay live, Escape closes it and
Ctrl+Plus and Ctrl+Minus still zoom.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 18:55:40 -05:00
aj c1e2e9ea2d Merge M13 Drawings panel and Drawing Properties into the Avalonia port work
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	OpenNest.Avalonia/NestView.axaml.cs
2026-11-30 18:54:09 -05:00
aj 2d40e76390 Merge M20 sheet cut-offs into the Avalonia port work
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	OpenNest.Avalonia/MainWindow.axaml
2026-11-30 18:53:30 -05:00
ajandClaude Opus 5.5 7635846094 feat(avalonia): port the Drawings tab and Drawing Properties
The Drawings tab now shows the WinForms rows: each drawing's picture, name,
"[on this plate] nested of required nested", size and area, with the
fully-nested highlight and quantity bar, refreshed 50 ms after parts change
on the shown plate or the nest is edited. Its toolbar sorts the list (the
choice shared with the WinForms app) and hides the fully nested drawings,
with the note to show them again. Its menu deletes a drawing or removes the
unused ones after the WinForms confirmations, and a double-click opens
Drawing Properties; each edit is one undo step through the shared commands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 18:53:18 -05:00
ajandClaude Opus 5.5 347c0e98b8 refactor(engine): remove dead code flagged by Roslyn Bridge
Drop the unused Expander.BoxOverlap helper, an unused local in
JointCuttingPlanSearch.AutomaticEntries, PairFiller's unread plate field,
and parameters nothing reads (BuildStrategies' spacing, RepeatColumns'
token, RouteDistance's i/j). NestJobValidator keeps its job parameter:
it names the argument in the thrown exceptions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 18:52:12 -05:00
ajandClaude Opus 5.5 66ad3ef587 feat(avalonia): sheet cut-offs, trim/extend, swap and automatic scrap cutoffs
Plate > Sheet Cut-Off and Trim/Extend Cut-Off (also toolbar buttons)
run the shared tools: a dashed preview of the line a click adds and a
cursor tag, Space turns the line, Tab switches full length or Trim and
Extend without moving focus. Select drags a cut-off with the lines that
meet it. A right click on a cut-off junction offers Swap Through-Cut,
taking the part menu's place only there.

Plate > Automatic Scrap Cutoffs and Nest > Automatic Scrap Cutoffs (All
Plates) open the dialog over the shared session: settings, measurements,
per-plate table, issues and a colored status, the active plate's
detached preview drawn as dashed lines, and Apply as one undo step that
keeps the head-lock choice for new cut-offs.

Rebuilding the plate list no longer passes through an empty selection,
so a tool is not ended when an edit changes the plate's part count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 18:51:42 -05:00
ajandClaude Opus 5.5 13056a2d6a Merge M14 nest info, Clear Nest and nest defaults into the Avalonia port work
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 18:49:51 -05:00
ajandClaude Opus 5.5 f76bad4bac feat(avalonia): Nest > Edit, Clear Nest and the nest defaults
Nest > Edit opens Edit Nest as the WinForms dialog has it: the Info tab
(name, dates, thickness with the standard gauges, material and grade
from the posts and machines, customer, units, status and author), the
Defaults tab (plate size, part and edge spacing, quadrant, and "Use
these defaults for new nests") and the Notes tab. Done is enabled while
the name, thickness and size read and the edge spacing leaves room; it
is one "Nest Info" undo step through the shared NestCommands, a typed
author is remembered for new nests, and the name stays the file's. A
click on the status bar's material label opens it too (a right-click
offers it in a menu), with the WinForms tooltip.

Nest > Clear Nest... asks before leaving one empty plate, as one "Clear
Nest" step; it is refused while Auto Nest or a save runs or the plate
tool is busy. Tools > Nest Defaults... edits the machine, units, plate
size, quadrant, spacing and common-line usage new nests start from,
saved where they are read (the nest server once it holds them, read-only
while it cannot be reached), and Save Current Plate as Defaults saves
the shown plate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 18:49:17 -05:00
ajandClaude Opus 5.5 6cb56a6afd feat(desktop): share the cut-time report and cut simulation playhead
CutTimeReport computes and words what Calculate Cut Time shows for a plate
or nest (time from the simulation with acceleration plus clamp removal,
distances and counts from the timing info) as the WinForms timing window.
CutTimeEntry and CutTimeMachineChoice hold the dialog's box ranges, the
entered values' cut parameters and the Acceleration list's entries.
CutSimulationPlayback is the simulator's playhead without drawing: play,
pause and speed, scrubbing, part, cutout and move stepping, retiming that
keeps the torch in place and which parts it has not reached;
CutSimulationStatus words its status rows.

The WinForms timing window, cut parameters dialog, machine box, simulator
and overlay now call them; their behavior is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 18:45:44 -05:00
ajandClaude Opus 5.5 2f375215fc feat(desktop): share the cut-off tools and automatic scrap cutoffs
CutOffEdits ports the WinForms manual cut-off edits, each one undo step
under its WinForms label: Add Cut-Off (a Sheet Cut-Off line, stopped at
the first crossing unless full length), Trim/Extend Cut-Off and Swap
Through-Cut, applied to the definitions in Plate.CutOffs, rebuilt with
RegenerateCutOffs and placed with PlateSequencing.PlaceCutOffs.
CutOffDrag is the Move Cut-Off drag, taking the joined lines along.

SheetCutOffTool (Space turns the axis, Tab toggles full length for the
view) and TrimExtendCutOffTool (Tab switches mode) are plate tools; the
Select tool now drags a pressed cut-off.

AutomaticCutOffSession holds the Automatic Scrap Cutoffs dialog's
logic: unit-aware defaults, parsing, planning and applying through
AutomaticCutOffBatch as one step, and the status, details and per-plate
table texts.

The WinForms actions, cut-off handler, junction menu and dialog now
delegate to it with unchanged behavior, except that releasing a
cut-off without moving it no longer rebuilds the cut-offs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 18:44:49 -05:00
ajandClaude Opus 5.5 8d1204e917 feat(desktop): share the Drawings tab rows, drawing commands and properties
Moves the Drawings tab's row content (quantity, size, area, highlight and
quantity bar, the hidden-list note), Delete Drawing, Remove Unused Drawings
and the Drawing Properties dialog's values and color rules into
OpenNest.Desktop so the Avalonia app can share them. The WinForms list,
nest window and Edit Drawing form delegate to them unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 18:42:20 -05:00
ajandClaude Opus 5.5 6f1d21173d feat(desktop): share nest info, Clear Nest and the nest defaults choices
NestInfoValues is what Nest > Edit edits (name, dates, thickness,
material and grade, customer, status, author, units, notes and the plate
defaults): read from a nest, when Done is enabled, how it writes the
nest, which Made By to remember, the material and grade lists and the
fields undo puts back. NestCommands holds its commit as one "Nest Info"
step (a changed material or thickness takes the machine's spacing and an
untouched trailing sheet follows), the defaults "Use these defaults for
new nests" saves, and Clear Nest as one "Clear Nest" step with its
question and busy message. NestDefaultsChoices holds the Tools > Nest
Defaults dialog's machine order, common-line list and box ranges.

The WinForms Edit Nest dialog, nest window and Nest Defaults dialog
delegate to them with unchanged behavior.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 18:42:20 -05:00
ajandClaude Opus 5.5 416f8296a8 Merge origin/master into the Avalonia port work
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 15:10:32 -05:00
ajandClaude Opus 5.5 2503c05d71 feat(ui): copy and paste parts between nests
Two nests that should have been one (a thickness saved as 0.1196 instead
of 0.12 kept N26-2CN and N26-2CH apart in Auto Nest) could only be joined
by re-importing drawings and re-nesting. Copy and Cut now also remember
the selected parts, and Paste (Ctrl+V) and Paste in Place (Ctrl+Shift+V)
put them into whichever nest is active.

A paste adds an exact copy of each drawing the target lacks, with its
required quantity, uses a same-named drawing with the same geometry, and
refuses a different drawing with the same name, since a nest cannot hold
two. Drawings are captured at copy time, so later edits or undo in the
source do not change what is pasted. Clipboard keys in text boxes now
edit the text instead of acting on parts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:35:06 -05:00
ajandClaude Opus 5.5 5b67d78ac7 fix(ui): return the placing preview to the cursor after a settled click
Shift/Ctrl+click settles the preview onto the plate, then copies it. The
preview stayed on the settled copy until the mouse moved, so clicking again
without moving settled from inside that copy and stacked the next part on it.
The preview now goes back to where it was clicked, keeping any arrow nudge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 06:35:30 -05:00
ajandClaude Opus 5.5 e78fc45149 test(ui): start the grid tooltip timer the dispose test relies on
DisposingAGridStopsItsShowingKeyboardToolTip expected ShowKeyboardToolTip
to leave an auto-pop timer running. On Windows 11 and later keyboard
tooltips are persistent and start none, and showing one hooks the form's
Deactivate, which stops the timer whenever the form loses activation
(it flaked on CI's Server 2022 runner). Set up the running timer
explicitly; the test still fails without GridStyle's dispose hook.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 21:43:20 -05:00
ajandClaude Opus 5.5 2773654604 test(posts): mask post time stamps when comparing outputs
PlannedDoor_PostsExactlyItsCutsAndNeverTheOutline posts the same nest
twice; the Cincinnati header stamps the clock to the second, so CI
failed when the two posts straddled a second boundary.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 20:37:17 -05:00
ajandClaude Opus 5.5 c6b42b448c fix(avalonia): refresh the status bar utilization when the plate is resized
Resize to Fit and Edit Plate change the plate's area without changing
its part count, so the cached utilization text went stale. Also correct
the comment on why a failed spacing search records nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 20:28:27 -05:00
aj 6f32d04cff Merge M12 plates panel and plate commands into the Avalonia port work
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	OpenNest.Avalonia/MainWindow.axaml
#	OpenNest.Avalonia/MainWindow.axaml.cs
2026-11-29 20:19:40 -05:00
ajandClaude Opus 5.5 7ccce96620 feat(avalonia): plates list, plate commands and Edit Plate
The Plates tab lists each plate as the WinForms list does: its number
("New plate" for the trailing empty one), size, part count, utilization
and, beside it, how many sheets are cut from it. A click shows the
plate, a double-click edits it, and its menu duplicates or deletes it.
Dragging a row moves the plate, Ctrl+drag drops a copy, a line showing
where; Alt+Up and Alt+Down move the current plate. The empty plate at
the end stays last.

The Plate menu gains Edit, Set as Default (the nest's default plate and
the defaults new nests start from), Rotate 90 degrees either way or 180
(fitting the turned plate), and Resize to Fit (Ctrl+P, by the auto-size
factor in Options); the Nest menu gains Remove Empty Plates. Each is
one undo step under its WinForms label, through the shared
PlateCommands, and none runs while Auto Nest works on the nest.

Edit Plate edits the quantity, size, part and edge spacing, the
quadrant with a picker (click or arrow keys) and the sheet: rectangular,
or an outline imported from a DXF, DWG or SVG file (an SVG that does not
state its size asks what its units are first), with Clear to make it a
rectangle again. Done is enabled only when the size parses and the edge
spacing leaves room on the sheet; an empty plate's new settings become
the nest's defaults.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 20:18:28 -05:00
aj f3c7bdae0e Merge M11 arrange and common lines into the Avalonia port work
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	OpenNest.Avalonia/MainWindow.axaml.cs
2026-11-29 20:12:14 -05:00
ajandClaude Opus 5.5 4e831ab6f8 feat(desktop): share the plate list and plate commands
PlateCommands ports the WinForms nest window's plate commands, each one
undo step under its WinForms label: Remove Plate, Remove Empty Plates,
Duplicate Plate (the copy current, with its own cutting parameters),
Move Plate and its Alt+Up/Alt+Down target, Rotate Plate (90 degrees
either way or 180), Resize Plate to its parts by the auto-size factor,
Set Nest Default Plate, and Edit Plate's commit, where an empty plate's
new settings become the nest's defaults and the nested quantities are
counted again. NewNestDefaults is what Set as Default saves for new
nests: the plate, the saved common-line usage and the nest's machine.

PlateEditValues is what Edit Plate edits (quantity, size, part and edge
spacing, quadrant, outline), when Done applies and how it writes the
plate; SheetOutlineImport reads an outline from a CAD file, and SvgScale
holds the scale prompt for an SVG that does not state its size.
PlateListRow is the Plates list's row text and its drag drop slots;
QuadrantPick the quadrant picker's hit test and cells.

The WinForms nest window, plate list, Edit Plate dialog, quadrant
picker, SVG scale prompt and Save Current as Defaults delegate to them
with unchanged behavior.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 20:11:38 -05:00
ajandClaude Opus 5.5 044b59463b feat(avalonia): arrange parts and common lines from Plate > Arrange
Plate > Arrange runs the shared Arrange edits on the active nest's
plate, each one undo step under the WinForms label:

- Left, Right, Top, Bottom, Horizontally and Vertically line the
  selection up with its first selected part; Evenly Space Horizontally
  and Vertically spread it; Center Parts centers every part in the work
  area.
- Join Common Line joins the selection at the kerf of the plate's
  cutting parameters, Remove Common Line removes its groups (each says
  why when it cannot), and Cut Common Lines Twice is a checked toggle
  showing the plate's setting.
- Expand Spacing and Fix Spacing search on a worker behind a modal
  Cancel window (OperationProgressDialog, the WinForms
  OperationProgressForm's rules): it appears once a run outlasts
  300 ms, Cancel, Escape and the close box only request cancellation,
  and it closes once the worker stops. The plate takes no edits until
  then. Expand needs two selected parts; while Auto Nest works on the
  nest both say to finish it first. Their result shows in the status
  bar.

A right click released on a selected part in Select opens a menu with
Join and Remove Common Line, enabled as in WinForms. While Auto Nest
works on the nest the other Arrange commands are disabled, as the
WinForms modal progress window keeps them out of reach.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 20:11:35 -05:00
ajandClaude Opus 5.5 99c440b215 feat(desktop): share the plate command progress window's rules
OperationProgress holds what the WinForms Cancel window for Expand and
Fix Spacing does apart from drawing itself: a run that finishes within
300 ms never shows it, the caller blocks until then, the elapsed time
updates every half second, and after Cancel it reads "Canceling...
waiting for the current step to stop". The WinForms window now uses it
with unchanged behavior.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 20:11:35 -05:00
aj 14641f1392 Merge M05 status bar and engine list into the Avalonia port work
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	OpenNest.Avalonia/MainWindow.axaml
2026-11-29 20:11:26 -05:00
ajandClaude Opus 5.5 ac894bbd9d feat(avalonia): add the engine list, status bar and Nest > Machine
The toolbar's Engine list shows each engine's description beside its
name and its tooltip, and saves the choice through EngineSelection. The
status bar follows the WinForms strip: the tool's name and hint with the
last notice, the location (a click switches between following the mouse
and showing left clicks, saved for both apps), the selection, the
nest's machine (either button lists the machines to assign), material,
plate utilization and the version. Nest > Machine assigns a machine as
one undoable step, refused while Auto Nest works on the nest or the
plate's tool is busy; Auto Nest is enabled only with a plate to nest on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 20:10:34 -05:00
ajandClaude Opus 5.5 021af04222 feat(desktop): share the status bar text, machine list and plate-work guard
MainStatusText words the main window's location, machine, material,
utilization and version labels as WinForms does, with the labels'
tooltips and the StatusBarLocationFollowsMouse setting both apps keep.
MachineMenu lists the machines for Nest > Machine and the machine label
(by name, the nest's checked, one no longer on file checked and
disabled), and MachineSettingsSource.ApplyMachine assigns one with its
support grid, cut-off defaults and spacing. PlateWorkGuard holds the
"Finish or cancel the current nesting or plate action first." check.
The WinForms main window delegates to them unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 20:10:34 -05:00