Commit Graph
2611 Commits
Author SHA1 Message Date
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
ajandClaude Opus 5.5 17e6e65e1c fix(labels): turn each bend letter upright from the part's nearer edge
Pointing a letter's top at its bend line read upside down whenever the
letter sat past the line from a short flange (N26-2J3 plate 2: PT33, PT71).
Place now records which way each letter faces: its bottom toward the side of
the part, across the line, where the material ends sooner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 11:53:14 -05:00
ajandClaude Opus 5.5 0740ee1d4d fix(desktop): show two plates in the nest progress layouts
When a layout's sheets cannot all fit the width at a third of full
height, size them so the first two fill the strip instead of keeping
full height and showing less than one plate. Open the progress window
wide (85% x 75% of the screen) so the two plates have room.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 14:46:44 -05:00
ajandClaude Opus 5.5 5203646fd4 fix(labels): face each bend letter toward its bend line
A bend group letter was turned only to read upright in the drawing frame, so
on a narrow flange it could read upside down from the flange's outer edge
(N26-2J3 plate 14, PT52). Its top now points toward the bend line, and the
etched strokes compare the spot with the bend in the same (offset-free) frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 14:28:55 -05:00
ajandClaude Opus 5.5 c29085c9d7 feat(cutting): repair safest-route head raises by local reorders
The safest-route fallback walks greedily and never revisits a part it
has cut, so a rapid that passes over a cut part gets a head raise even
where cutting two parts the other way round keeps the head down (N26-2DC
plate 2: 5 raises). After the walk, each raised rapid now tries cutting
its target before the earliest part crossed, and each crossed part just
before or after the target. Only the moved parts and their neighbors are
planned again; a change is kept only when the full replay breaks no more
checks and raises fewer times, so a route can only get safer. Kept part
orders are never changed. N26-2DC plate 2 drops to 1 raise and 2732.6 in
of rapids (was 2804.8).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 07:25:48 -05:00
ajandClaude Opus 5.5 332b8452b2 fix(machine-config): keep unknown cutting fields through the Use toggle
Turning "Use for this thickness" off and back on rebuilt the thickness's
cutting settings from scratch, dropping fields this build does not know
(such as the retired tabHeldMaxLength still on the shared CI FIBER machine).
The nest server then refused the save as if an older OpenNest were erasing
them. Checking the box again now carries those fields over from the
settings it cleared.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 06:51:48 -05:00
ajandClaude Opus 5.5 83125ca4c0 feat(desktop): show a plate's quantity large at the right of its card
The quantity was tucked into the parts line, easy to miss when scanning
the Plates list for layouts cut more than once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 06:46:06 -05:00
ajandClaude Opus 5.5 c82a4afc7a feat(desktop): show plate previews in the Plates list
The Plates tab becomes a card list like the drawings list: each row shows a
picture of the sheet with its parts in their drawing colors, beside the plate
number, size, quantity, part count and utilization. Pictures are cached per
plate and redrawn only when the sheet or a part's placement changes; the list
repaints after each recorded edit so moves and rotations show.

Drag and Ctrl+drag reordering, Alt+Up/Down, the row menu (a right-click now
selects its row), double-click to edit and the stock tooltip carry over.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 21:20:10 -05:00
ajandClaude Opus 5.5 2b62cea4c8 fix(plate-view): keep a part still when its context menu is dismissed
A context menu swallows mouse moves while it is open, so the view's cursor
stayed where the part was right-clicked. The click that closed the menu then
re-selected that part and the first move dragged it to the click. Sync the
cursor on every left or right press so a press acts where it lands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 20:19:22 -05:00
ajandClaude Opus 5.5 fee7df3544 feat(desktop): sort plates by size from the Plates tab
A Sort Plates by Size toolbar button reorders the nest's plates largest or
smallest first, as one undoable step. Equal areas order by the longer side,
same-size sheets keep their order, the current plate stays current and the
trailing empty new-plate sheet stays last.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 20:18:20 -05:00
aj 990f7660b2 fix(plate-view): color bend lines by grain as a traffic light
Across the grain, the preferred direction, was yellow, which reads as a
warning, while with the grain (the worst) was cyan. Bend lines are now
green across the grain, yellow at an angle and red with the grain. Dash
patterns and the dark outline are unchanged.
2026-11-26 19:28:03 -05:00
aj 909afa158e docs(reporting): describe formed part marks on nest reports 2026-11-26 19:10:23 -05:00
aj b3d89ee479 feat(desktop): add Formed after cutting to Drawing Properties
The checkbox starts checked for a drawing with bend lines (brake bends
or a rolled part's centerline bend). Unchecking it marks a bent drawing
that ships flat; checking it marks a part whose bend lines were lost.
A choice the bend lines already make is not stored, so later bend line
edits keep deciding.
2026-11-26 19:10:23 -05:00
aj f298aa361d feat(reporting): mark formed parts on nest report plate pages
A formed part's ID reads "7F" on the plate diagram (shared group labels
too, "7F*" when also tabbed) and in the plate's parts table, with an
"F Formed: goes to forming." legend line, so the operator can sort
formed and flat parts onto separate skids. A job with any formed part
adds a Formed column (Yes / blank) to every plate's parts table.
2026-11-26 19:10:23 -05:00
aj e498788c28 feat(core): know which drawings are formed after cutting
Drawing.IsFormed is true when the drawing has bend lines, unless
FormedOverride says otherwise: rolled parts usually carry no bend lines,
and a drawing with bend lines can ship flat. The override is an additive
.nest field ("formed"), omitted when the bend lines decide, and split
pieces keep it.
2026-11-26 19:10:23 -05:00
ajandClaude Opus 5.5 120c458584 feat(reporting): fit more on each nest report page
- Split each plate page's parts table into two side-by-side halves, so
  twice as many drawings fit beside the diagram. Entries run left to
  right, then down, keeping ID order across page breaks.
- Draw a diagram ID's white box only when it is needed: an ID clear
  inside its part or a hole prints bare over the part's fill.
- Shorten part-card thumbnails so a page holds five card rows, and make
  each row its own table so no stray card edges show at a page break.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 15:52:23 -05:00
ajandClaude Opus 5.5 cb97b58126 feat(desktop): move Remove Unused Drawings to the drawing list's menu
The drawings toolbar was getting crowded, and the command is a rare
once-per-job cleanup. Right-click the drawing list to run it; it keeps
its confirmation and undo. The menu now opens with no drawing selected,
offering only the whole-nest commands, and hides stray separators.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 15:40:00 -05:00
aj 06aa81760b fix(desktop): describe bend line grain colors in the Show Bend Lines tooltip
The tooltip still promised the whole-part outline warning that grain
colors replaced in b5069cca.
2026-11-26 15:30:33 -05:00
aj 41366873e0 chore(help): ship help v0.8.2 2026-11-26 15:30:18 -05:00
aj 0d21e71d24 feat(desktop): open the nest's material in Machine Configuration from the status bar
Right-clicking the status bar material offers Edit Nest... and Show in
Machine Configuration..., which opens the configuration with the nest
machine's thickness for its material selected (else the grade, the
material or the machine). A left click still edits the nest.
2026-11-26 15:17:09 -05:00
aj 197d77a560 test(problem-nests): let a large Auto Nest job record its own time limit
N26-2J9 (292 parts on seven stock sizes) needs about 200 s for Auto Nest
on a 4-core test machine, so it failed as Timeout under the shared 120 s
limit although it meets its baseline. An "auto-nest:" line can now say
"limit 300 s": the longer of that and the shared limit applies, so
OPENNEST_PROBLEM_NESTS_TIMEOUT can still raise every limit but never cuts
this one short. Recording a baseline keeps the entry.
2026-11-26 14:38:52 -05:00
aj b8e14308a3 docs(planning): describe pulling a later part ahead on a swap take-back 2026-11-26 13:07:08 -05:00