- 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>
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>
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.
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.
The free search learns order rules only between the parts a blocked
approach crossed. Where an uninvolved part is cut can decide the block:
the part cut before the crossed ones sets where the tool arrives from, and
so how they are entered and left. On a six-part plate of holed covers the
search swapped the crossed pair, learned rules under that swap, took it
back and then re-learned the same pair, running out of budget although
cutting the last part earlier plans Ready in under 300 expansions.
When a swap is taken back, each part still to be cut after the blocked one
is now tried in front of the earliest crossed part, nearest first, one
stall-bounded pass each, with the part before it planned again facing it.
That plate plans Ready again within its budget.
With no saved size, Load applied the 0, 0 default, which Windows raised to
the window's minimum (588 x 381); the next normal close saved that minimum,
and from then on the window always opened at it. Before settings survived
updates (v0.7.0) every update started from the default, and the settings
migration then carried the saved minimum into user-settings.json.
Load now ignores a saved size that is empty or no larger than the minimum
and keeps the designer start, maximized, so existing settings recover.
Save keeps the restored bounds of a maximized or minimized window and never
saves the minimized state, as the Drawing Sets window already does.
AutoNestForm read "Nest on the server" through nestOnServerBox.Visible,
which WinForms reports as false whenever the form is hidden or another tab
is selected. AutoNestCommand reads NestOnServer after ShowDialog returns,
so a checked box never sent the job to the server, and the choice was not
saved when the dialog closed on a tab other than Plates. Availability now
lives in its own field.
Fixes AutoNestFormPlateSourceTests.CurrentPlatesAreNeverNestedOnTheServer
on windows-desktop (Cross-platform tests run 45732432564).
Auto Nest's Plates choice lets a run use only the nest's current plates
(the free space beside parts already placed, then the empty plates it was
given) or current plates first and then new sheets. New plates stays the
default and unchanged. The review draws parts already on a plate in one
gray, and the whole proposal is kept in one undo record.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Default now runs Rectangles, Raster, Circles, then Irregular, so a stopped
or time-limited search holds an irregular plan within seconds. Ranking is
unchanged; Raster is last in tie-break order and wins only with a strictly
better score. The cutout pipeline tests keep their "ordinary solve cannot
fit the insert" precondition for Irregular only, since Raster nests in holes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DefaultEngineSelectionTests requires the MCP autonest tool's engine
parameter to describe every built-in engine; Raster was missing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raster packs each part rotation as a bit mask of its material grown by
half the part spacing plus 0.75 cell, so masks that never share a cell
keep the spacing and every layout passes the layout check unrepaired.
Coarse raster no-fit maps propose positions and a grid four times finer
settles them; the job is decoded in 48 greedy variants through the
shared stock loop. It is selectable by name, not a Default candidate.
Benchmark, 7 real jobs, --parallel 1, 6" minimum salvage: all layouts
valid; Irregular's sheet count on 5 jobs in 0.6-2.3 s against 11-78 s,
at under 1 to 4% more salvage-credited cost; 3 sheets against 2 on 27K;
24 s on 2J9 (seven stock sizes). Packing tighter and opening the gaps
with Fix Spacing saved under 0.1% of cost for up to 25 times the time,
so it was left out.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
View in CAD and View Nest Report started the associated program in the
app's working directory, the Velopack install folder. A CAD program left
open held that folder, so every update failed to swap it and the app
relaunched on the old version.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A slice whose strip beside the cutout is nearer its line than the grid's
points ever come (half a pitch less the registration tolerance) separates
no contacts; it only cuts close alongside the part's edge. Leave it out so
the strip joins the piece beside it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Across and with the grain were yellow and orange, nearly alike as thin dashed lines on a part. The three kinds are now yellow, cyan and magenta, each with its own dash pattern, drawn thicker over a dark outline.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Two parallel bends an inch apart each got their own group letter, though parallel bends are always in one group. A bend now gets none of its own when a letter is already placed for a parallel bend within 12 inches (300 mm) of its line.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A part bent two ways listed its bend groups in the label box, which did
not say which bend was which. Each bend now gets its own circled letter
beside its line, just past the band the bend rolls through, on either
side and at the largest of the label text sizes that fits. The letters
need no label box, so the box holds the part number only and the groups
are no longer etched in it.
The nest's units size the letters, so Plan Cutting callers pass them.
The CAD Converter previews the letters for any part with bends.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Slug slices ran along the grid's rows and columns of points, so every
slice cut over the support points and into the grid. They now run midway
between the rows and between the columns, half a pitch from every point.
Slat beds still slice along slat center lines.
A part's slices were all cut before any of its contours, leaving a slug
sliced while the head cut other cutouts. Each cutout's slices are now
emitted directly before that cutout.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The frontier packer is offered Lattice blocks only on an empty sheet, so
the like parts that end a job went down one copy at a time, and the
banded variant that lays them out as a person does runs minutes later.
Someone stopping Auto Nest on an early plan got that ragged sheet.
Each plan that becomes the best now has its last sheet packed again as
full-height Lattice bands, before and after its tail re-plan, on a work
meter and block catalog of its own. The banded plan is kept beside the
search, reported when it beats every plan reported and returned when the
search ends without beating it, so the search runs as before.
On N26-2J9 the nine-sheet plan's last sheet (139 parts on 48 x 144) ends
at 114.55 instead of 120.76, about 22 s after the plan is reported.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Four levels left a set of rings in many sizes with stacks on the sheet beside
empty bores that would hold them. The depth only bounds the recursion that
expands a bundle, so chains now run as deep as the bores allow, up to 32.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The 32-bundle limit now counts only bundles the lattice and NFP searches were
consulted for; round inserts in round holes are packed analytically and are
bundled up to 4,096. A round insert sits against the wall at the hole's lowest
point unless the centered layout seats more, so the room left is one crescent
that smaller round parts fill.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Largest first sets the large discs side by side before any smaller one is
placed. Each sheet of 24 discs or fewer is now also packed with the order of
its discs searched for a shorter layout, and the room that frees is refilled
from the remaining demand.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A ring seated in a bore was the spacing check's worst case: every triangle
pair overlaps and each piece is subtracted by the whole cutout before the
answer is no. An outline lying strictly inside one cutout shares no material
with that part, so SpacingOutline.Overlaps says so directly; touching or
crossing outlines still take the full test.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>