Commit Graph
812 Commits
Author SHA1 Message Date
ajandClaude Opus 5.5 6a10f2a959 docs: drop PEP mentions that explain nothing
The sequence-method numbering note and the overlap benchmark's data source
named PEP without a reason; mentions that explain behavior caused by
PEP-converted data stay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:25:32 -05:00
ajandClaude Opus 5.5 c29b242fc1 docs(heat): drop the PEP numbering note from the sequencer section
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:25:32 -05:00
ajandClaude Opus 5.5 af999ba5d6 perf(simulator): resume heat replays from checkpoints and vectorize the step
Scrubbing the Cut Simulator backward reset the heat model and replayed
from zero, so every frame cost a full run (~75 ms on N26-2EF, over a
second at 1/32 in cells).

- A straight run from the start now keeps checkpoints (temperature,
  peak, cursors) about every 500k cell updates, within 32 MB; the
  pieces are rebuilt from the event cursor. Going back, or jumping
  more than eight steps ahead, resumes from the latest checkpoint a
  straight run to the target passes, so the state is exactly that
  run's. Seeks on N26-2EF drop from 12-150 ms to about 1 ms.
- The diffusion step runs branch-free on Vector<float> with neighbor
  links precomputed as 0/1 weights when pieces change, and splits
  across processors on grids of 65,536 cells or more. A missing link
  adds a zero, so results stay bit-identical.
- Rises below 1e-30 K are flushed to zero: the heat front passed
  through subnormal floats, which made long runs 2-4x slower. Only
  cells below ~3e-18 K change, by at most 2e-25 K; N26-2EF's end state
  is bit-identical.

A full run on N26-2EF falls from ~150-180 ms to ~15-40 ms, so the
automatic cell size's work budget rises from 20M to 60M cell updates
(still about a tenth of a second); full sheets keep 0.5 in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:09:13 -05:00
ajandClaude Opus 5.5 71196866d7 feat(simulator): pick finer heat cells for small plates
The heat map's 0.5 in cells were too coarse to show heat trapped in
small parts such as washer rings. Unless a cell size is set, cells now
halve from 0.5 in down to 1/16 in while a full replay stays within 20
million cell updates (about a quarter second), since scrubbing back
replays from the start. Full sheets with long cuts keep 0.5 in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:09:13 -05:00
ajandClaude Opus 5.5 d4dfde5126 feat(simulator): move inputs to a Settings tab and time with the nest's machine
The Cut Simulator had grown a row per input and was crowding the
window. The slider now leads, with the time under it, then the transport
and four equal jump buttons spanning exactly the slider's track. Part,
drawing, motion and the heat view sit on a Status tab; the feeds,
pierce, heat input and etch choice move to a Settings tab, so the window
is shorter and the time stays visible while settings change.

The Acceleration picker is gone: the simulator always times with the
nest's machine (Nest > Machine), shown by name on the Settings tab, and
falls back to full speed when the nest has none. Calculate Cut Time's
remembered machine is left alone. The Avalonia simulator follows suit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 12:31:48 -05:00
ajandClaude Opus 5.5 c96666b59c fix(simulator): take each part's perimeter as the posts do
The cut timeline called a contour exterior only when it closed and ran
clockwise, while the posts (ContourWinding.PerimeterIndex, L4/L2 on the
CI Fiber) take each part's contour enclosing the largest bounding box,
closed or not. A perimeter left open at a tab was therefore timed at the
hole feed, and the heat map dropped the whole part as a cutout slug with
its heat: on N26-2ED every washer showed no heat at all. The timeline now
uses the posts' rule, so tabbed or counterclockwise perimeters take the
outside feed and stay in the heat map as cut-free parts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 10:15:45 -05:00
ajandClaude Opus 5.5 41e8e9496f feat(simulator): lose plate heat into the support slats
The heat model now loses heat through the bottom face into the bed the
sheet rests on when ThermalParameters.SupportBed is given. Each cell gets
the share of its area over a slat's top (SupportSlats.SlatsIn) or a grid
point's square pad (SupportGrid.PointsIn, GridContactSize), placed for the
plate's quadrant and computed by overlap rather than snapped to cells.
That share times ContactCoefficient (200 W/m2K by default, an effective
estimate to calibrate; slats get no temperature of their own) is added to
the air loss as a per-cell exponential decay, which stays stable. Without
a bed the model is unchanged. The Cut Simulator passes the plate's bed and
says in the heat label whether slats or the grid cool the sheet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 22:47:25 -05:00
ajandClaude Opus 5.5 8420036530 docs(heat): name FLIR readings as what unparks the heat-aware sequencer
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 22:47:18 -05:00
ajandClaude Opus 5.5 97055c98be feat(sequencing): add a parked heat-aware part sequencer
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>
2026-11-30 22:47:18 -05:00
ajandClaude Opus 5.5 1403517184 feat(simulator): estimate plate heat buildup during a cut
Add PlateHeatSimulation, a grid model driven by the cut simulation's
timed moves: cutting and piercing add absorbed power under the torch,
heat conducts within each piece and is lost from both faces. Finished
cutouts drop their slug and its heat; a finished outside contour cuts
the part free of the skeleton so no heat crosses the kerf.

The Cut Simulator gains a Heat layer (Now / Peak so far) with the
absorbed power as an input, colored against the 99.5th percentile so
single-cell pierce spikes don't wash out area buildup. Temperatures are
relative estimates for comparing cut orders; see docs/plate-heat-map.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 22:47:18 -05:00
ajandClaude Opus 5.5 55e8ea6084 feat(engine): grow edge strips with Expand Spacing
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>
2026-11-30 22:11:45 -05:00
ajandClaude Opus 5.5 ebd0d4d9a9 feat(mcp): export DXF/SVG, post G-code, set sheet outlines
Agents could bring drawings in but only save .nest files, and could not
describe an irregular sheet. New tools: export_plate and export_drawing
(DXF/SVG/placement text, as File > Export), list_posts and post_nest
(behind the same pre-post verification gate as desktop and console, with
consent per call), and set_plate_outline (as the console's --outline).
The shipped posts now copy to Posts/ beside the server on build and publish.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:02:41 -05:00
ajandClaude Opus 5.5 97c80b2c9b feat(reports): make material and thickness stand out
Operators read the part spacing beside the thickness as the thickness.
Material and thickness now sit in a larger, shaded band under each page
title, part spacing moves away from it, and the thickness reads
"3/8 (0.375 in)" like the rest of the app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:02:41 -05:00
ajandClaude Opus 5.5 6b161d7a8b feat(data): store a nest's thickness name and show it
Nests showed only the decimal (0.135), while the shop thinks in gauges.
A nest now keeps a ThicknessName in its file, record and the server
(schema v20), set from Nest Information's new box, which suggests the
machine's name or the nearest standard gauge. The Open list, status bar
and reports show "10 ga (0.135)"; nests saved without a name get one
looked up for display only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:02:41 -05:00
aj a85b0cc45f Merge M19 cut time and cutting simulation into the Avalonia port work
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	OpenNest.Avalonia/MainWindow.axaml
2026-11-30 18:56:49 -05:00
ajandClaude Opus 5.5 59d263abda feat(avalonia): calculate cut time and simulate cutting
Plate > Calculate Cut Time and Nest > Calculate Cut Time ask for the
outside feed, rapid, pierce time, hole feed, acceleration machine and
etch choice (remembered in the settings both apps share, saved however
the dialog closes, as WinForms), then show the timing as the WinForms
Timing Information window.

Plate > Simulate Cutting and its toolbar button open the Cut Simulator:
play and pause at 1x to 250x, restart and end, part and cutout jumps,
move stepping with the arrow keys, scrubbing, and the time, part,
drawing and motion at the playhead, retimed as the feeds change and
following the shown plate. The plate view draws the cut trail, travel,
the torch and pierces, and mutes parts and cut-off segments the torch
has not reached. While it is open the nest is view-only, as WinForms:
only the plate view and its header stay live, Escape closes it and
Ctrl+Plus and Ctrl+Minus still zoom.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 18:55:40 -05:00
ajandClaude Opus 5.5 66ad3ef587 feat(avalonia): sheet cut-offs, trim/extend, swap and automatic scrap cutoffs
Plate > Sheet Cut-Off and Trim/Extend Cut-Off (also toolbar buttons)
run the shared tools: a dashed preview of the line a click adds and a
cursor tag, Space turns the line, Tab switches full length or Trim and
Extend without moving focus. Select drags a cut-off with the lines that
meet it. A right click on a cut-off junction offers Swap Through-Cut,
taking the part menu's place only there.

Plate > Automatic Scrap Cutoffs and Nest > Automatic Scrap Cutoffs (All
Plates) open the dialog over the shared session: settings, measurements,
per-plate table, issues and a colored status, the active plate's
detached preview drawn as dashed lines, and Apply as one undo step that
keeps the head-lock choice for new cut-offs.

Rebuilding the plate list no longer passes through an empty selection,
so a tool is not ended when an edit changes the plate's part count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 18:51:42 -05:00
ajandClaude Opus 5.5 2503c05d71 feat(ui): copy and paste parts between nests
Two nests that should have been one (a thickness saved as 0.1196 instead
of 0.12 kept N26-2CN and N26-2CH apart in Auto Nest) could only be joined
by re-importing drawings and re-nesting. Copy and Cut now also remember
the selected parts, and Paste (Ctrl+V) and Paste in Place (Ctrl+Shift+V)
put them into whichever nest is active.

A paste adds an exact copy of each drawing the target lacks, with its
required quantity, uses a same-named drawing with the same geometry, and
refuses a different drawing with the same name, since a nest cannot hold
two. Drawings are captured at copy time, so later edits or undo in the
source do not change what is pasted. Clipboard keys in text boxes now
edit the text instead of acting on parts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:35:06 -05:00
ajandClaude Opus 5.5 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 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 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 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 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 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 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 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
aj 909afa158e docs(reporting): describe formed part marks on nest reports 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
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
ajandClaude Opus 5.5 ce594814c6 feat(autonest): choose new plates, current plates or both
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>
2026-11-25 19:56:58 -05:00
ajandClaude Opus 5.5 4280d568b4 feat(engine): run Raster as a Default candidate
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>
2026-11-25 19:55:33 -05:00
ajandClaude Opus 5.5 ca9e08b93d feat(engine): add the Raster nesting engine
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>
2026-11-24 23:06:56 -05:00
ajandClaude Opus 5.5 501ee4f04d feat(support): leave out slug slices that cut off only a bare strip
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>
2026-11-24 21:41:32 -05:00
ajandClaude Fable 5.2 593757608c feat(labels): share one bend letter among parallel bends close together
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>
2026-11-24 21:18:00 -05:00
ajandClaude Fable 5.2 ae14101554 feat(labels): etch each bend's group letter beside its bend line
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>
2026-11-24 20:36:24 -05:00
ajandClaude Fable 5.2 c5e378206d feat(support): slice slugs between grid points, directly before their cutout
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>
2026-11-24 20:16:04 -05:00
ajandClaude Fable 5.2 96e6a1e006 feat(irregular): band the last sheet of each best plan
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>
2026-11-24 19:58:05 -05:00
ajandClaude Fable 5.2 9e3f0d5558 feat(cutouts): let ring chains nest 32 deep instead of 4
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>
2026-11-24 19:20:53 -05:00
ajandClaude Fable 5.2 5af42230c2 feat(cutouts): bundle every repeated ring and seat inserts against the bore wall
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>
2026-11-24 18:17:54 -05:00
ajandClaude Fable 5.2 d4ad7a6201 perf(bestfit): slide a batch on boundaries prepared once, with the same distances
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>
2026-11-24 14:37:04 -05:00
ajandClaude Fable 5.2 9ffd02db73 test(reports): run the first pdftotext on PATH that accepts -bbox
The PDF report tests ran whichever pdftotext came first on PATH. Git for
Windows ships Xpdf's, which has no -bbox, and shells that list Git first
hid Poppler's: 21 tests failed with "Expected 0, Actual 99" on a machine
that had Poppler installed.

ReportPdf now takes the first pdftotext whose help offers -bbox, fails
naming what it found when none does, and still skips when there is none
at all. OPENNEST_PDFTOTEXT names one outright.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 13:25:13 -05:00
ajandClaude Opus 5.5 7634c95fc7 feat(labels): find the label box for half-inch text, stepping down to fit
Quarter-inch etching is hard for the shop to read, and most of the crew
would rather have half-inch text. Find Best Location now tries half-inch,
then three-eighths, then quarter-inch text (12, 9, 6 mm) and keeps the
largest that fits, so big parts get readable labels and small parts still
get one. Only when even the quarter-inch label fits nowhere is a box
placed for hand adjustment, at that smallest size. Boxes already placed
keep their size until found again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 17:53:24 -05:00
ajandClaude Opus 5.5 75f7444aab feat(labels): etch each bend group letter inside a circle
A dash and letter after the part number (4980A01PT09-A) reads like a
revision, and many part numbers already end that way, so the shop could
not tell where the number stops and the bend group starts. Each group
letter is now etched at 0.6 of the text height inside its own circle the
text height across, clear of the name: 1234 (A)(B). One shape for every
group keeps the shape itself from seeming to mean something.

The circles take more room than "-AB", so the default label box grows
from seven characters to eight to keep a four-digit number and two groups
at full height. The gusset finder test is pinned to the seven-character
size it was written for.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 17:53:23 -05:00