Expand Spacing moved nothing on a plate holding two groups of flat bars at
different rotations: they are no single repeating pattern, and the pair
search needs every pair to reach one spacing, which it could not do on the
packed layout.
When the pair search gains nothing on a packed selection, open X and then Y
on their own, keeping the parts' order, and report the gap of each axis.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Dense hole patterns heat one area when cut row after row, and the part
order cannot spread that heat. With the limit on, a part's holes follow
the same start rule, lattices in strided rows; jumps over cut holes are
emitted head up and counted as heat raises. On a vent-pan nest the
hottest zones fell 43% for 3% more cut time.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With a heat start limit, a large grid's lines are now cut every third line per
pass, filling the rest on later passes, and a plate's lattice (its most common
part size, when it forms a grid beside other parts) is cut in those lines while
the other parts keep the single-part rule, all in one heat walk.
The rule alone tested only where a line starts, so a line began cool and ran
into its neighbors' heat: on N26-2F2 (659 washers, 0.12 in, 20 C) line starts
measured 7 C but the median part 87 C. Strided, every part's start P90/max
falls from 105/145 to 89/102 C and the hottest zones by 13%, for +0.4% cut time
and 8 more heat raises. Clusters change nothing on that plate, whose few other
parts happen to bin into the lattice; they keep the line order on plates where
one off-pitch part would drop the whole plate to the single-part rule.
Limit 0 is unchanged: neither runs without a limit. The measurement harness can
still compare strides and turn clusters off for its own flow of work.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The heat start limit tests only where a grid line starts, and on a heat-soaked
sheet that is the wrong place: on N26-2F2 (659 washers, 0.12 in, 20 C) line
starts measure 7 C while the median part starts at 87 C, because each line
runs into the heat its neighbors left. Skipping one line is not a rule; it
falls out of "nearest line under the limit".
Two measured-only switches, off outside the harness so plans are unchanged:
- CuttingGridStride.Override cuts every Nth line per pass (and optionally
every Nth part in a line), filling the rest on later passes; the strided
order is the plain order the limit walks, taking its next piece across cut
parts with a head raise.
- CuttingGridStride.Clusters cuts the plate's most common part size as
lattice lines and every other part as single parts in one heat walk, so odd
parts no longer decide whether a plate gets the line order at all.
HeatOrderMeasurementTests gains OPENNEST_HEAT_STRIDES, OPENNEST_HEAT_CLUSTERS,
OPENNEST_HEAT_GRID_ONLY and every part's start temperature. Every 3rd line at
10 C: part P90/max 85/93 C against 105/145 for the rule alone, +1% cut time.
Splitting lines reaches a 19 C median but routes around cut parts: travel x5,
+24% cut time, 280 raises. Results in docs/plate-heat-map.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Plan Cutting's heat-aware order is now one setting, "Don't start above (°C
rise)" (CuttingParameters.HeatStartLimit, 0 = off, saved per material and
thickness), with the same rule for single parts and for the lines of large
grids: before each next piece, estimate the temperature where it starts when
the tool gets there; cut the plain order's next piece when it is at or under
the limit, else the nearest piece under it, else the coolest. A move across
parts already cut is a heat jump, reached with the head raised and counted in
HeatRaises; parts that cannot take a raise are reached head-down only when
nothing else is ready. The weighted block layouts and the grid prototype's
static switch and Alternate mode are gone; every-other-line on the washer
grid falls out of the rule.
The rule counts the heat of the part just cut: leaving it out halved the
raises on a 0.06 in sheet but left the starts' P90 at 32-36 C instead of
about 3 C. Re-plans after a learned order rule replay the parts already cut
into the estimate and the crossing test, and an order the heat never moved
stays the plain one, so a limit the estimate never reaches changes nothing.
Measured (HeatOrderMeasurementTests, docs/plate-heat-map.md): washer grid
line starts 63 -> 6 C for +1.5% travel and 1-2 raises; 0.06 in sheet zone
P95 -25% for +10-15% travel, +2% cut time; 0.25 in sheet at 10 C zone P95
-18% for +15% travel (the old weight: -10% for +51%). No fallback raises.
Limit 0 is byte-identical (characterization digests, problem-nest
part-order and grid areas pass).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Large aligned grids take the serpentine and never reached the heat-aware
order, so a heat weight did nothing there. This prototype reorders the
serpentine's lines (every other line out and back, or the nearest line
whose start the heat estimate puts under a limit), keeping each line's
parts in order and marking the moves across cut parts as heat jumps.
It runs only with a heat weight and CuttingGridHeatOrder.Setting set by a
measurement harness; otherwise the serpentine stands, byte-identical.
GridHeatOrderMeasurementTests (opt-in, OPENNEST_GRID_HEAT_PLATE) compares
the orders on a plate.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Plan Cutting cut dense runs of small neighboring parts back to back, so thin
sheets built up heat in one area (N26-2F2 sheet 2). An opt-in
CuttingParameters.HeatWeight (s of travel per degree C, saved per material and
thickness; 0 = off) lets the tour compare the plain tour with two cutting
fronts and 2x2-6x6 blocks, scored by travel, 2 s per jump and the old
Gaussian heat estimate fed by the Cut Simulator's feeds.
A move to another block across parts already cut is a designed head raise:
the strict search raises that arrival and replay marks it HEAD RAISE, counted
in HeatRaises, not HeadRaises. Locked programs and cut-offs cannot carry the
mark, so they are reached head-down only as a last resort. The user approved
raising the head to jump between blocks, since these small parts can be tabbed.
At weight 0 nothing runs: fingerprint, serializer and plans are unchanged
(corpus part-order and characterization digests pass). On the 121-part 0.12 in
sheet, weight 0.1 lowers the hottest-zone P95 by 37% for 11% more cut time,
with 37 designed raises and no fallback raises.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The free part order costed every cut-off from its origin-side start, though
a head-locked far-edge segment may be cut from either end. Beside a sheet
separator the tour therefore ended on the parts near the origin side, and on
N26-2EU (four flange rings beside a head-locked scrap separator) the search
learned rules from those orders until no order ended on the ring beside the
far-edge start. It ran out of budget and the batch fell back to the current
order, which was Ready only because the right ring happened to be last.
Each reversible cut-off is now also costed from its far-edge end, and the
tour keeps that end when it is shorter. N26-2EU plans Ready with a new order
in under 1,000 expansions. Plates without head-locked cut-offs get the same
tour as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The washers corpus plate 2 (1,258 parts) rebuilds its proposed part order
about 20 times, and each Or-opt pass tried every gap for every run of one
to three parts: 4.7 million leg measurements per pass. That was a third of
the plate's planning time.
Or-opt now indexes the parts' exit points in an ExtentGrid and tries only
gaps whose leg is longer than most, the start and end gaps, and gaps that
start close enough to the run to possibly shorten the route (by the
triangle inequality, insertion < removal needs |af| < |ab| + (removal +
|fl|) / 2). It still tries them in ascending order and takes the first
valid improvement, so the tour is the same. Both Or-opt and 2-opt now
measure each route leg once per order instead of once per candidate,
reusing the exact values they computed before.
Plate 2 plans in 21.4 s instead of 33.2 s, measured alone, with an identical
plan digest; plate 1 is unchanged. The corpus (part-order, entries) matches
the previous run's outcome and expansions on every plate.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 5k-washers corpus plate planned in about 90 s alone and timed out at the
corpus's 120 s limit whenever anything else ran, making the corpus fragile.
Profiling showed nearly all of it was linear scans over every part, repeated
per candidate: each lead check walked all 5,742 materials (and first re-tested
that all were complete), each rapid walked every completed contour, each
expansion rebuilt a HashSet of every cut part, each checker copy regrew its
obstacle list, and the nested-part search tested all 33 million part pairs.
A uniform grid over extents (ExtentGrid) now leaves out only parts whose
extents lie beyond the margin the existing skip tests use, and the rest are
visited in their original order, so every check returns exactly what the full
scan returned (same findings, same first obstacle, same budget charges):
- LeadPathValidator visits only materials not clear of the lead's queries or
its midpoint's row, through a shared LeadMaterialSet built once per walk and
replay; ContourEntryFeasibility reuses that set instead of copying it per part.
- ReleasedContourState keeps a read-only obstacle prefix with a grid, shared by
copies, so copies stay cheap and rapids test only nearby contours.
- The search keeps one ordinal flag array per order instead of a HashSet per call.
- CuttingDependencyGraph tests each part only against hosts whose bounds can hold it.
Plate 1 alone: 93.3 s -> 12.3 s (capture 2.7 -> 1.2 s, plan 90.6 -> 11.1 s),
with the identical plan digest and 86,245 expansions; plate 2 also plans
identically. The problem-nest corpus (part-order,entries) gives every plate the
same outcome and expansion count as master, and the Collision kernel and every
tolerance are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The cut order comes from Plan Cutting or the user (Manual Sequence,
Sequence by Path). The PEP-era sequencers (Right/Left/Bottom Side, Edge
Start, Least Code, Advanced) and the parked heat-aware one predate the
cutting planner. Only Auto Sequence still ran one (Least Code), and its
order was replaced as soon as the plate was planned.
Removes Plate > Sequence Parts > Auto Sequence and Nest > Auto Sequence
All Plates, the sequencers and their factory, and the old PlateProcessor
with its rapid planners, which only tests used. The cutoff ordering
rules stay (OrderCutOffsFirst, PlaceCutOffs) and are now tested on
given routes. SequenceMethod and SequenceParameters stay so saved
cutting settings keep loading.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A head-locked far-edge cut-off may be cut from either end, and the search
tries the nearer end first. The part cut just before it still aimed its exit
at the origin-side start, so a ring beside the far edge left from its bottom
and the rapid back up to the far-edge start crossed the ring just cut. N26-2EU
(four flange rings beside a scrap cut-off) planned UNVERIFIED with two rapid
crossings. The part now faces whichever start is nearer to it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A group fill dropped every copy that hit a clamp and left the room it
freed empty. The gaps are now filled with whole copies, through the
gap search the single-part fill already used.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
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>
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>
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>
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>
- 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>
- 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>
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>
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>
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>
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.
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>
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>
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>
With clamps on the sheet, Fill Area's clamp-clear check allowed only 1e-6
of overhang at an area edge that is not the sheet's, while the fillers
allow the geometry tolerance at every edge. An interlocked pair whose
partner ended a few millionths past the selected box lost both parts, so
a box that holds two pairs of triangles got two singles. Inner edges sit
at least the part spacing (or a clamp keep-out's spacing slack) from
material, so allow the tolerance there when the spacing covers it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Best-fit slide distances rebuilt their band indexes for every offset: over
half of a slide's time and nearly all of its allocation (5.8 GB for the
225,684 slides of 51 drawings). CpuDistanceComputer now slides a batch
through Core's SlideBatch, which packs the two boundaries and builds their
vertices, contact topology and one band index per boundary and push axis
once. The pair search prepares each pair once for its first slides and its
settling slides (IPreparedDistanceComputer).
For pushes along an axis a slide also passes over pairs that cannot change
its answer: a vertex or curve outside the other boundary's whole extent
across the push, which every band test rejects, and, while the nearest
contact is searched for, a pair whose gap along the push already reaches
the nearest distance found, which the search discards. Both keep margins
for the kernels' own tolerances; a ray hits a line up to epsilon of its
length past its ends.
Every distance is bit for bit what the per-slide query returns:
CpuDistanceComputerEquivalenceTests compares the batch with a frozen copy
of the old computer on hand-built boundaries, grazing and touching starts
and the pair search's own batches. The per-slide sources and
SlideResolver are unchanged and remain what every other caller uses.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
PairEvaluator built two parts for every candidate and converted and
chained each one's program twice, about 140 KB of garbage per candidate.
Under the workstation GC that allocation, not the arithmetic, set the
pace.
It now builds the first part once and the second once per rotation, and
applies each candidate's offset to their hull vertices and bounds. The
overlap polygons are flattened straight from the perimeter program's
codes: turned, converted, chained, moved and flattened with the operands
and order of the long way, using the conversion's and Arc's own helpers.
The chain ShapeBuilder finds is recorded once and replayed, which is only
done when every pair of entity ends is clearly together or clearly apart;
otherwise, and for full circles, incremental moves and sub-programs, the
perimeter is built as before.
On 51 drawings from four production nests (68,521 candidates) the
evaluator goes from 5.9 s to 0.93 s and FindCandidates from 7.9 s to
3.3 s; allocation falls from 9.6 GB to 1.6 GB. Results, their order and
the overlap polygons are bit-identical to the previous evaluator, which
the tests keep as a frozen oracle.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Plan Cutting checked each lead only against part material, so it could
pick an entry whose lead-in pierced past the plate's edge and still call
the plan Ready; only the pre-post plate edge check noticed (N26-2D6
plate 2: PT97 0.25 from the left edge, a 0.3125 lead at 60 degrees ran
0.062 off it).
The planner now stamps the plate's box on each part's lead material, and
LeadPathValidator refuses a lead-in or lead-out past it by more than the
plate edge check's slack, so the search enters from a side with room and
a contour with none fails naming the edge. A locked or pinned lead off
the sheet is a FixedLead warning. A part whose own material is already
off the sheet keeps the old checks: no lead can fix it, and the edge
check reports it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Plan Cutting ordered whole parts by their centers. On N26-2DJ a 15.8"
terminal stands upright beside a stack of the same part, pierced at its
top end; its center sits halfway up the stack, so the tour cut it 7th
instead of 13th and added 11.3" of rapid (40.9" to 52.2").
A program kept as given (a locked part) now enters the tour at its first
cut and leaves from its departure, as cut-offs already did. A slender
regenerated part with holes (extent at least 3:1) is reached and left at
whichever hole center suits its neighbors, since its holes are cut first
and its outside entry leaves beside them; after the center tour it moves
to the gap where that detour is shortest. Hole-less parts keep their
centers: their entry faces whatever comes next.
N26-2DJ now plans to 40.8" locked and 39.6" unlocked. The
locked-among-regenerated digest changes only in expansions (268 to 55);
its order and rapids are unchanged. The part-order corpus meets every
baseline and no plate nears its budget.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Block requests were keyed and charged by every copy still wanted, so a
high-demand part (140 copies) spent a large share of the work budget per
Fill and never reused a block from one sheet to the next. Later sheets
got no Lattice block for the strip beside their large parts: on N26-2J9
a 48 x 96 sheet held 25 small parts where a Fill of the strip holds 32.
Requests now ask for at most what the rectangle's area could hold of the
part's material. Fill stops at the copies asked only when it could place
more, so the patterns are unchanged; they cost less and are shared.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Cutting Settings and Cut-off Settings buttons looked alike and were
easy to mix up. Plan Cutting now shows two titled groups: Part cutting
(Leads & Tabs..., its summary and Keep current part order) and Scrap
cut-offs (the box, Strips... and the strip width). Planner messages
name the renamed button.
Canceling Leads & Tabs, or OK with nothing changed, keeps the current
plan. Canceling Strips keeps it too when no cut-offs were staged; with
the box ticked the staged cut-offs had to come off, so it still replans.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Cutting Parameters dialog had grown taller than many screens. It now
puts the leads in a column of their own beside Tabs, Cutouts, Marks and
Pierce (about 780 x 580 instead of 410 x 985). The Place Lead-in side
panel and Machine Configuration keep the single stacked column. The tab
size range is one "Narrow side from ... to ..." row, with its details in
tooltips.
Since e1ccd692 every tabbed part counts as steady, but "Tab alone holds
parts up to" (TabHeldMaxLength, default 6) still picked short parts' tab
points from the center-of-gravity line and treated every tab as equally
steady in the last-resort entry fallback. The setting is removed: every
part the support grid cannot hold level is tabbed and held by its tab,
however long it is. Settings and nests saved with the old value read
unchanged and ignore it.
The problem-nest corpus (entries, every nest) plans identically to master.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The etched label text is made at capture from the drawing's name, label box,
bends and source offset and the plate's grain, but the freshness record did
not include them, so Apply could etch an outdated label. When the confirmed
settings etch labels, capture now records them and Apply returns Stale if any
changed; with labels off nothing new is compared.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the on/off CuttingParameters.EtchPartLabels with a PartLabelMode
(Off, PartNumber, PartNumberAndBendGroups), chosen from a dropdown in the
Cutting panel and kept per machine thickness. PartNumber etches only the
drawing name; the full mode keeps the 1234-AB label.
Settings saved with the old boolean still load: true reads as
PartNumberAndBendGroups and false or a missing key as Off, in the cutting
parameter DTO and the machine thickness config. The old key is never
written again. The plan fingerprint keeps the old full-label token and
adds one for the number-only mode.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Plan Cutting adds each part's label to the clean program it plans from
when CuttingParameters.EtchPartLabels is on (off by default, kept per
machine thickness like the other cutting options), so it is emitted as
scribe marks: shown, counted in cut time, posted through the etch path
and never part of nesting geometry.
The text is the drawing name plus its bend groups ("1234-AB"). A group
is the bend line's direction against the sheet grain in 15 degree steps
(BendGrain.Bucket), named by a fixed letter: A across the grain, B with
it, then C to L. A built-in single-stroke font (StrokeFont) draws it,
centered in the box and shrunk to fit down to half the box height.
Locked or unplanned parts, drawings without a box and common-line
members get no label. A plan-time warning for a label that cannot fit,
a letter beside each bend's etch dashes and a per-group list in the
reports are left for later.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>