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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
- 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>
- 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>
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>
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>
- 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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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.
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.
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.
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.
- 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>