Commit Graph
2632 Commits
Author SHA1 Message Date
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 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
ajandClaude Opus 5.5 0c9790d474 Merge M08 zoom and plate navigation into the Avalonia port work
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 20:09:40 -05:00
ajandClaude Opus 5.5 ca6e8cd4ce feat(avalonia): zoom commands, zoom window, measure area and plate menu items
View > Zoom To (Area, Fit, Plate, Selected), Zoom In (Ctrl+Plus) and Zoom Out
(Ctrl+Minus), the nest header's zoom buttons, Nest > First/Last/Next
(Ctrl+Right)/Previous (Ctrl+Left) Plate and Tools > Measure Area, as WinForms.
The wheel zooms by the WinForms step, panning hides the hover highlight, and
resting on a part shows its drawing name after a second.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 20:09:17 -05:00
ajandClaude Opus 5.5 cf6a7df3be feat(desktop): share zoom window, measure area, hover tip and resize scaling
ZoomWindowTool and MeasureAreaTool port the WinForms Zoom Window and Select
Area actions onto the shared plate tool framework; PartHoverTip is the plate
view's delayed drawing-name tooltip; PlateZoom gives the Zoom To areas.
ViewTransform now scales with the viewport on resize as DrawControl does and
zooms about its center by the menu's 1.5 step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 20:09:17 -05:00
ajandClaude Opus 5.5 10651618bf feat(desktop): share the Plate > Arrange edits
PlateArrange ports the WinForms Arrange commands, each one undo step
under its WinForms label: Align Left/Right/Top/Bottom, Horizontally and
Vertically (lined up with the first selected part), Evenly Space
Horizontally/Vertically, Center Parts, Join Common Line (facing edges up
to four part spacings, at least an inch, apart), Remove Common Line and
Cut Common Lines Twice/Once. It also decides which common-line commands
the part right-click menu enables.

Expand Spacing and Fix Spacing take a runner for the search, so a front
end can run it off the UI thread behind a Cancel window; the step opens
before the search (it moves the live parts when it finishes), and a
canceled run moves nothing and records nothing. They return the parts
to redraw and the status line WinForms shows.

The WinForms plate view, selection manager and part menu now delegate
to it with unchanged behavior; Center Parts keeps its own loop, which
moves the view's layout parts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 20:05:50 -05:00
ajandClaude Opus 5.5 db18075bec fix(io): close SVG outlines that stop just short of their start
Boxes.py with a burn above 0 leaves out an outline's last corner, so
the curved BreadBox sides ended 0.14 mm open and Separate split their
slots and edges into stray parts. Import now closes a subpath of three
or more segments that ends within 0.5 mm of its start, and warns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 19:01:29 -05:00
ajandClaude Opus 5.5 3b19fda767 feat(cad): preview which part each entity separates into
Separate gave no way to see what each part would take before
splitting the file. Preview Parts, joined to the front of the
Separate button, draws every entity in its part's color and labels
each part with the name it would get.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 18:41:55 -05:00
ajandClaude Opus 5.5 d09840e788 docs(readme): point to Boxes.py designs and how to import them
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 17:40:51 -05:00
ajandClaude Opus 5.5 e9d9d025f7 fix(io): keep Boxes.py outlines closed and quiet its name labels
Boxes.py runs past each corner and straight back before turning. Merging
those overlapping lines dropped the point where the outline turned, so a
BreadBox's curved strips imported open and Separate counted their pieces
as parts. A straight segment that turns back along the previous one now
leaves only their net line; one that returns exactly to its start keeps
the line, as a slit cut there and back.

Text that import reads as a group's name is no longer reported as a
skipped element, so a Boxes.py sheet opens without the partial-import
message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 17:36:41 -05:00
ajandClaude Opus 5.5 6ee5633212 fix(io): drop SVG curve loops that pinch off an outline
A Bezier that ends where it starts, inside a subpath that draws anything
else, imported as a tiny circle and became a hole. Boxes.py draws one at
every inside corner when its burn is above 0, so a SlidingDrawer came in
with 248 fake holes. Import now drops such loops and warns, asking for
burn 0 since the burn also enlarges every part. A loop that is its
subpath's whole drawing still imports.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 17:25:05 -05:00
ajandClaude Opus 5.5 40defbeeb4 feat(io): name SVG groups from their single text label
A group with no title that holds exactly one visible text child now
labels its geometry with that text, so Separate Parts names the pieces
of a Boxes.py sheet ("Top", "Wall 1"). Titles still take precedence,
and layer groups never use their text as a name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 15:46:17 -05:00
ajandClaude Fable 5.2 197a1ac760 perf(fill): fill past the clamps first and skip pair grids that cannot win
Interactive Fill on a plate with clamps took over five minutes on a
1240-part sheet. Every progress report certified all the parts again, and
the pair phase checked grids for overlaps whose count could not beat the
best so far.

- Fill the clamp-free strip first, then the whole work area with clamp
  hits dropped; a tie keeps the strip layout.
- Certify a preview only when its layout changed, and cache each part's
  material geometry for the certification.
- Resolve a whole-pair grid only when its outcome can change a decision,
  and drop a candidate without sorting when none of its grids can beat
  the count to beat. Layouts are unchanged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-29 14:38:33 -05:00
ajandClaude Opus 5.5 42036a321a refactor(planning): group AnalyzeMoves findings in a sink
ReleasedContourState.AnalyzeMoves took its strict, fixed, raised and
warning finding lists as four parameters. They now travel in one
ContourFindings sink, which also routes a finding by fixed ownership.
The rapid-crossing loop, the open-cut retention proof and the part-end
open-cut obstacle move to private methods. Finding order, contents and
cancellation checks are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 12:36:00 -05:00
ajandClaude Opus 5.5 aeef9b58cd refactor: remove unused OpenNest.Gpu project
OpenNest.Gpu never ran: the best-fit slide search passes native entities,
whose GpuDistanceComputer overload fell back to the CPU, and the GPU pair
evaluator was disabled earlier. Remove the project, its axis-only
ISlideComputer adapter (GpuDistanceComputer, BestFitCache.CreateSlideComputer,
BestFitFinder's slideComputer parameter), the Training tool's GPU wiring,
SpatialQuery.FlattenLines and the ILGPU tests. Best fit always uses
CpuDistanceComputer, as it already did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 12:28:00 -05:00
ajandClaude Opus 5.5 47497f4153 refactor(engine): share the strip edge loops in IterativeShrinkFiller
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 12:24:45 -05:00
ajandClaude Opus 5.5 157b4a1017 refactor(core): share the mode-conversion walk in ConvertMode
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 12:24:45 -05:00
ajandClaude Opus 5.5 7b78dc3c08 refactor(math): share angle normalize and between logic by period
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 12:24:45 -05:00
ajandClaude Opus 5.5 8cd9d5173b refactor(ui): share the BOM file picker between the BOM import forms
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 12:06:38 -05:00
ajandClaude Opus 5.5 fd3ee24082 refactor: share library record copies and MCP search page formatting
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 12:06:37 -05:00
ajandClaude Opus 5.5 70ac1c7d6f refactor(server): share the by-id scalar query for packages and job results
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 12:06:37 -05:00
ajandClaude Opus 5.5 4d921a357c refactor(cad): share breakoff and tabbed-cutout handler flow
Extract RemoveFeature<T> for the breakoff, tabbed-cutout and dimension remove handlers, and BreakoffsChanged/TabbedCutoutsChanged for the refresh-then-mark-stale tail of every add, edit, remove, flip and tab-drag handler. Behavior unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 12:00:44 -05:00
ajandClaude Opus 5.5 be4b04c7b5 refactor: share NestItem copies, support analysis cache and lead selection
- NestItem.WithQuantity replaces eight hand-written copies that changed only
  the quantity, so a new field is copied everywhere.
- The WinForms support overlay uses Desktop's SupportAnalysisCache and
  SupportClearance instead of its own copy.
- CuttingParameters.LeadInFor/LeadOutFor replace the contour-type switches in
  ContourCuttingStrategy and ActionLeadIn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 11:28:56 -05:00
ajandClaude Opus 5.5 b692ae463a refactor(core): use switch expressions for unit labels
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 09:50:41 -05:00
ajandClaude Opus 5.5 d77693aaff refactor: share duplicated fill, cache, settings and toggle code
- fill_plate and fill_area share one MCP fill helper
- FillLinear uses FillHelpers.HasOverlappingParts
- BestFitCache and FillResultCache entries derive from DrawingCacheEntry
- NestDefaults and ClampSettings read through SettingsFile.TryReadText
- MainForm view toggles share one ToggleView handler

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 09:47:29 -05:00
ajandClaude Opus 5.5 4b61d249c0 fix(expand): let every selected part move and stop edges and clamps pinning parts
Expand Spacing kept the first selected part fixed and stalled on full plates.

- A pair of selected parts now shares each push (later part half, earlier
  part the rest, later part any remainder), so no selected part is an anchor.
  Both shares run to the full target, so a part between two short gaps no
  longer ping-pongs while its partners never move.
- Clamps act like the work-area edge: a part may close on the keep-out but
  never enter it, and the clamp gap neither chases the target spacing nor
  counts as the achieved spacing. Before, clamps held their full entry gap
  and a part resting just above one capped the whole search.
- A part flush on an edge can slide along it again. A push that leaned into
  the edge by rounding (parts turned a quarter or half) divided zero room by
  a tiny component and pinned every move.
- Faster search with identical layouts: per-part pair lists, clearances
  remembered at the positions measured, box-proven clamp pairs skipped,
  trial-move gaps measured only up to their threshold, the overlap clipping
  run only for outlines that touch, cross or nest, and ring distances
  measured at offsets without copying outlines. Clearance gains the bounded
  and offset distance used for this.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 08:45:31 -05:00
ajandClaude Opus 5.5 6ad65a7091 feat(ui): select a selected part's drawing in the drawing list
Selecting parts on the plate selects their drawing in the nest window's
drawing list when they all share one; a mixed or empty selection, or a
drawing the list hides, leaves the list's selection as it was.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 22:10:33 -05:00
ajandClaude Opus 5.5 1f7fd248fe refactor: share duplicated snapshot, history and fetch helpers
- CuttingPlanSnapshot: one private Copy carries every value and init
  property for WithSearchLimits, WithTabLeadOuts, WithPreservedOrder and
  WithTabbedPartsAvoided, keeping the defensive CrossableTabbedParts copy.
- NestPhaseExtensions: DisplayName and ShortName share one attribute
  lookup and keep their own caches.
- NestDatabase: History, DrawingHistory and DrawingSetHistory share
  ReadRevisionPage (count, page query, read rows) under the same lock.
- NestServerClient.GetOrNullAsync: the GET, 404 check-then-null, ensure
  success and read flow used by the Remote* clients.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 18:39:56 -05:00
ajandClaude Opus 5.5 409d30d29e refactor(core): share duplicated geometry helpers
Route the four identical even-odd ray casts through RingContainment.Contains and share the arc-intersection, span-pairing, overlap-region, lead-in, plate-offset, leader-edge, entity-copy and path-perimeter duplicates. Expressions and loop order are unchanged, so results are bit-identical.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 18:36:40 -05:00
ajandClaude Opus 5.5 8a1d89cea5 refactor(winforms): share duplicated handler code
The cut-off handler's hit test delegates to the Desktop PlateHitTester's
CutOffAt, the CAD Converter's breakoff and tabbed-cutout tab drags and
junction splits share small helpers, and the program editor's contour
start and end points share one entity-endpoint switch. Behavior is
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 18:29:34 -05:00
ajandClaude Sonnet 5.5 20323fda37 fix(engine): keep Raster parts inside the work area
Raster took each rotation's extents from the spacing outline, whose
vertices Clipper rounds to a 0.0001 grid, while the layout check measures
the geometry itself with 0.00001 of slack. A turned part pushed to a
work-area edge could end up to 0.00005 past it, which rejected seven of
the 49 variants on the README mixed job.

Position selection is unchanged. A part whose geometry would end past the
work area is nudged inside it, and a rotation whose geometry does not fit
the sheet is not tried, so already valid layouts stay identical.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 15:41:08 -05:00
ajandClaude Sonnet 5.5 71273a7925 feat(reports): grow the plate diagram into a short parts table's spare room
Where the whole parts table fits on the diagram's page, the diagram takes
the room left over and the table sits at the foot of the page. Longer
tables keep the 265 pt diagram and continue on later pages.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 15:40:46 -05:00
ajandClaude Sonnet 5.5 8b77d52f98 fix(desktop): paint the cut planner before it captures the plates
Plan capture runs on the UI thread, so the panel stayed blank for several
seconds when planning every plate of a large nest. Paint the window with
its "Planning..." status first.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 14:45:50 -05:00
ajandClaude Sonnet 5.5 e54a9456f4 feat(engine): add an opt-in solve log to the Default nesting engine
Set OPENNEST_NEST_LOG to a directory to write one JSON Lines file of
events and a text summary per Default solve: each candidate engine's
result, time and passes, and why the winning layout was chosen. It only
observes, so layouts are the same with it on or off.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 14:44:05 -05:00
ajandClaude Sonnet 5.5 bf9b0df816 fix(reports): draw arcs as Bezier curves to stop an out-of-memory crash
PDFsharp 6.2.4's XGraphicsPath.AddArc loops until memory runs out on some
arcs ending on a quadrant boundary within rounding, which nested part
geometry produces. Nest reports and part printouts now build arcs from
Bezier curves themselves.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 14:40:14 -05:00