Picking every piece of a contour one click at a time is slow. Select
Chain grows the selection through every line and arc joined end to end
(at the shape-building chain tolerance), so a closed loop, and anything
branching off it, is selected whole.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The mirror pass replaced an arc with its mirror image whenever the image
landed within the fit tolerance of the arc's endpoints, leaving gaps of up
to that tolerance; it now only lends its radius to a refit through the
arc's own endpoints, and only when that keeps the arc's end tangents.
Arc fitting fell back to tangent-free fits when the next arc could not
leave along the previous arc's end tangent, putting corners where the
drawing is smooth (two same-way arcs across an inflection). Chained arcs
now start exactly tangent, shortening the previous arc when that lets the
next one reach further, and an arc is kept only if it turns no more
sharply against its neighbors than the original polyline (plus 1 deg);
otherwise it is trimmed or its lines stay.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A file such as a sheet of ornaments imported as one drawing, with every
part but the largest treated as a cutout. PartBodies (Core) now finds the
separate parts by contour nesting, and the CAD Converter offers a
Separate (N) button plus Separate This Part / Separate All Parts in the
entity menu. Each part keeps its entity IDs, so roles, exclusions,
breakoffs, tabbed cutouts and dimensions follow it; separation is refused
when a breakoff or tabbed cutout spans parts.
SVG import keeps element titles as labeled regions, which name the
separated parts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Vertical or Horizontal Remnant fill of a quantity of round parts left
a deep remnant on the table: twelve 8 in. flanges took 25.6 in. of a
60 in. sheet's length and stopped 16 in. short of its far edge, where
two full-height columns need 15.1 in. Three causes:
- The low-quantity shrink scaled both sides, so stripes could not span
the side the remnant runs along. It now narrows only the trimmed axis.
- The ranking compared untrimmed counts, so the full-sheet layout always
beat the full-height columns and was then trimmed. It now ranks the
layout as it will be kept.
- The trim kept overlapping bounding boxes as interlocked pairs, which
staggered discs always are. Discs are now trimmed one by one.
The circle strategy also offers each stagger mode's stripes in both
directions to a remnant ranking. Every change is limited to remnant
fills of round parts: applied to other shapes, the trimmed ranking let
a tilted bar layout block the rest of a nest, and the disc trim moved
the Irregular engine's sample layout, so every other fill is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An Auto Nest problem nest recorded only a sheet count and where its last
sheet ends, so seeing the layout behind those numbers, or telling
whether a change still made it, meant nesting the old code again.
With OPENNEST_PROBLEM_NESTS_RECORD=1 the auto-nest area now saves each
nest whose layout is valid, complete and no worse than its baseline back
to the corpus server as a new revision: its plates become the layout
Auto Nest just made, on the sheets the job nested on, and its line ends
in "layout saved". A nest without a baseline gets its first one that
way. What was on the plates before stays in the earlier revisions.
- A layout inside the tolerance past the recorded end keeps that end,
so repeated recording cannot let the baseline creep.
- A nest that also guards planning or fill is not saved (those tests
read its plates), nor a layout leaving one of the nest's sheet sizes
unused (the job takes its sizes from the plates).
- A nest whose saved layout and line already match adds no revision.
Without the variable nothing is written; a run reports for each saved
layout whether Auto Nest still makes exactly it.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On a saved nest of the README sample parts (130 copies, 60 x 120, 0.3
spacing, bottom clamp rail) Auto Nest ended at 105.8 where a hand layout
of tidy bands ends at 103.1. Three things kept the banded fill from it:
- Lattice's first pattern for the 24 gussets set two columns 0.04 apart.
The band's certification rejected it and the band search stopped, so
the gussets had no band and filled the gaps as ragged columns. The
search now asks again just short of the rejected pattern
(BlockCatalog.RejectedBandLength).
- Building patterns is charged to the same work meter as the trials of
narrower and lower bands, and with the lower bands it spent the whole
budget, so the last types in the order never had a trial. Trials now
go round the types and may spend 25,000 work whatever the budget.
- A band taller than the height clear of the clamps lost members to
them. The first lower band is now asked for at that height and
searched like the full band; where such a band would stand whole in
place of one that loses members, the bands are searched a second time
with it there and the better sheet kept. A lower band no longer than
the full one stands first in its place, leaving a strip beside it.
That nest now ends at 103.1, the same parts built from the README DXFs
at 104.0 instead of 106.6, the help tutorial nest at 33.6 instead of
34.2; N26-2HH stays at 103.9 and the other benchmark jobs are unchanged.
Solves of these jobs take about a tenth longer.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The two tabbed-part tests from e4043a4d end with a pdftotext check, which
throws SkipException on hosts without poppler (the Linux CI runner). As
plain [Fact]s that skip was reported as a failure; [SkippableFact] matches
the other text-checking tests and still runs the PdfSharp path assertions
before the text check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tabbed parts (outline open at each tab) were drawn as bare outlines, so
the new drawing colors could not identify them. They are now filled in
their color, the fill bridging each tab gap while the stroked outline
keeps its gaps. A hatch would vanish on thin tabbed parts, so the mark
is a "*" on the diagram label and the parts-table ID, with a legend line
under the diagram sharing the removed-clamp note's line.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
N26-2CN's 13 x 1 in bars are 9.6 pt tall at overview scale, just under
the 10 pt ID, so none passed the in-part test. Two drawings share rows,
so each drawing's group rectangle took in the other's bars and was
refused, and leaders reached only the edge bars: most of the sheet had no
ID. A strip that thin now takes its ID at its pole, overhanging its own
outline by at most the clearance and touching nothing else.
As a last resort for parts no ID can reach, each drawing is filled in a
light palette color on the plate diagram and its card thumbnail, and its
ID cell in the parts table carries the same color as the key.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A 10-drawing plate (N26-2CJ, sent out for quote) spilled its last three
parts-table rows onto a second page. The generic legend lines (hatched
clamps, ruler units) explained what the page already shows, so they are
gone; only the removed-clamp line stays, since it is an action before
cutting. The diagram drops from 320 to 265 pt so ten rows still fit with
an estimated cut time and that clamp note, the worst case.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An auto-nest baseline was a sheet count. A job that does not fill its
last sheet can get much worse without taking another one: N26-2CJ went
from ending at 75.2" to 62.1" on one sheet either way, so the corpus
would have passed a layout back at 75.2".
The baseline line may now also say where the last sheet ends,
"auto-nest: 1 sheets, ends 62.2": how far along the sheet's length its
material reaches, measured from the end the layout starts at, the same
figure in every quadrant. At the baseline's sheet count a layout ending
more than 0.05 past it fails; one ending sooner is reported with the
line to record. A line without "ends" checks the sheet count alone, and
older code reads the new line as its sheet count.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On a sheet with a custom outline the plate edge review, Auto Nest's layout
check and the runner's candidate validation tested the part's spacing
outline against the usable area. That outline circumscribes arcs by up to
0.001, more than any of their slacks, so a disc whose true bounds rest on
the work-area edge read as inside the outline's edge spacing (or off the
plate at zero spacing) while the same disc on a rectangular sheet, judged
on its true bounds, was clean.
The outline test now works as the part-spacing check does: the spacing
outline finds the candidates and a failure is confirmed on the part's
native contour (NativeContours.Region: arcs circumscribed at 0.000025 and
clipped to the perimeter's true bounds). Both regions contain the material,
so a part past the usable edge by more than the slack still fails; no slack
changed. The runner now calls the layout check's own outline test
(NestLayoutCheck.InsideOutline): its separately flattened candidate could
accept a pose on a slanted edge that the layout check then rejected.
Pushes on an outlined sheet measured the same circumscribed perimeter so a
part would rest where the review passed, and box pushes stopped 0.0012
short of a wall for it. With the review confirming on native contours they
slide the material's own lines and arcs, so a round part rests on a wall
exactly as on the plate edge, and a box push rests the box on the wall.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A part whose planned outside carries a perimeter tab could not be pushed
away from a neighbor it rested against at the part spacing, and the
neighbor could not be pushed away from it: the push returned 0 with open
sheet ahead. It showed whenever the neighbor's bounds wrapped the part
(an eared or C-shaped neighbor), since otherwise the broad phase skips an
obstacle that is wholly behind.
The tab stops the cut short of its entry, so with the leads dropped the
outside is an open chain. Its spacing-offset contour does not close, the
slide kernel cannot tell which side of it is material, and it blocks
every contact against a boundary it cannot resolve. The parts were never
closer than the spacing.
PartGeometry now closes a tabbed contour across its tab before any
offset: the trimmed last cut is restored along its own line or arc
(exact), a round outside cut as one arc becomes its circle, and a tab
that swallowed whole entities is bridged by its chord, as flattening to
a polygon already closes it. Only a single gap is closed; closed
material is returned untouched, so untabbed parts and the fills see the
same geometry as before. No kernel code or tolerance changed, so a push
into a neighbor still returns 0 and a contour cut in several pieces
still blocks.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A plate with a custom outline was pushed against its bounding box only, so
a part pushed toward a missing corner ran through it to the box edge and
ended off the sheet. Compactor's plate pushes (Push, PushBoundingBox,
SettlePlacement, Settle) now also stop at the walls of the outline: the
part of the work area that is not usable material (a missing corner, an
obstacle, each grown by the largest edge spacing). A mover is measured as
the edge review measures it, by the circumscribed perimeter of its clean
material without leads, so it rests where that review still passes. A box
push stops 0.0012 short of a wall so the geometry push after it starts
clear. A rectangular sheet has no walls and pushes exactly as before.
SheetOutline.FromGeometry eroded the whole imported outline by the chord
tolerance, so a sheet drawn 60 x 27 was stored as 59.998 x 26.998 with a
chamfer at every inside corner. Each arc is now chorded on the side that
takes material away (ClipperBridge.FlattenOneSided) and straight edges are
kept exactly. The plate header, the plate list and Edit Plate's outline
size show the size rounded to four decimals instead of the raw double.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Make Nests with Nest after release ticked now nests what the MaterialLedger
stock cannot hold on the plate sizes the nest's machine lists for its
material, grade and thickness (Machine Configuration's Plate Sizes tab),
instead of the Nest Defaults sheet or a draft's saved options. The sizes
become the nest's plate-size options, converted to its units (standard
sizes are inches, custom ones the machine's units); a thickness listing
none keeps the previous behavior.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A thin strip on N26-2CJ had no ID in the plate diagram, and a half ring's
ID landed in the open side of its C shape, away from the material. The
in-part fallback searched the whole bounding box, so concave openings
counted as the part's own space.
That fallback now uses only enclosed holes. A part still unlabeled after
grouping gets its ID in the nearest clear space outside it, with a thin
leader to a dot at its pole; the leader crosses no other part, cutoff,
clamp, label or leader. Tiny parts whose ID other unlabeled parts share
get no leaders, so an ungroupable cluster does not bury the sheet in them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Grain belongs to the physical sheet, so Rotate Plate CW/CCW must turn it
too: a 60x120 sheet with side-to-side grain becomes a 120x60 sheet whose
grain runs front to back. Rotate90 swapped the size and turned the parts
but left GrainAngle alone, so bend-vs-grain warnings were wrong after a
rotation. A 180-degree turn leaves the grain's line unchanged.
Grain angles are lines, so they are kept in [0, pi).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A nightly corpus runner keys every area's results by the subject before the
colon, so the fill line now reads "<nest> plate 1: 33 parts (baseline 33),
61.2 s" (strategy other than Lattice in the subject) instead of putting the
plate number in the outcome.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fills had no corpus coverage, so a fill-engine change could lose parts on
a real nest without any check noticing. Nests whose checks: line names
fill are now filled plate by plate the way Fill Plate does (parts cleared,
cut-offs kept, the plate's own size, spacing, edges, quadrant and clamps)
and held to a "fill: 1=33" part-count baseline, with an optional strategy
("fill (Strip): 1=33", Lattice by default). Fewer parts, a layout that
fails the layout check, or a timeout fails; more parts are only reported.
A missing or mismatched baseline prints the observed line to paste.
AGENTS.md now sends fill-engine changes to the fill area only, instead of
never running the corpus for fills.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Automatic cut-offs matched existing cut-offs only on the exact same line,
so a grid line could land a hair beside a manual cut-off (or the planner's
own tail separator) and cut a sliver strip next to it. The planner now
keeps a cut clearance - the separator's part margin, the larger of part
spacing and cut-off part clearance - from every parallel cut-off:
- a full-span cut-off within it stands in for the proposed line (or the
tail separator) and is certified at its own X;
- a shortened or gapped manual cut within it is a blocking conflict, as an
exact same-line conflict already was, and the shift search avoids it;
- a strip line within it of a kept separator or full-span boundary is not
cut, letting that strip run past the spacing by less than the clearance;
the open sheet end keeps the bare tolerance, since oversize stock leaves
its far edge unknown;
- a new horizontal separator beside an unhonored horizontal cut-off is not
proposed.
With zero clearance and part spacing the guard falls back to the old
same-line tolerance.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The CAD Converter's Export button only wrote DXF (or SVG) with every entity on
layer 0 and no bends, so a re-imported export lost its bends and turned the
bend etch marks into cut geometry. Exporting now goes through a new
OpenNest.IO CadExporter:
- DXF R14-2018, DWG 2004-2018 or SVG. ACadSharp cannot write DWG 2007, and
its DWG 2000/R14 output loses entities and layers, so those are not offered.
- Entities keep their layers; etch marks land on ETCH, which import drops and
regenerates from the bends. A line picked as a bend is written only as it.
- DXF/DWG bends are BEND-layer CENTER lines with an "UP 90° R 0.06" MText note,
the form SolidWorksBendDetector reads. Pre-2007 files escape non-ASCII note
text as \U+XXXX, since ACadSharp reads raw non-ASCII back mangled.
- SVG bends are lines in a BEND group with data-bend-* attributes; the SVG
reader now returns them as bends (scaled with the drawing units) instead of
dropping the layer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
FillLinear.FillDeferred returns a grid whose final overlap check has not
run; Resolve runs it and returns exactly what Fill returns, and Fill is
FillDeferred(...).Resolve(). PairFiller sorts a candidate's grids with
CompareByCount, which answers from the counts a pending grid can still
have (its tiling or its bounding-box fallback) and runs the check only
when they could order the pair differently; the early abort and the
remnant pass resolve the grids they use. Every answer equals the checked
comparison, so List.Sort makes the same moves, ties included, and
layouts are bit-identical. A check that throws during the sort surfaces
unwrapped. On the bracket fill this skips about 35% of the pair grids'
final checks by work.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collision.HasOverlap, Check and PartOverlapChecker now triangulate into
CollisionTriangle values (each ear's open vertices and box sides) and clip
them in two reused stack buffers, instead of building a Polygon entity per
triangle and three lists per clip. Same ears, vertices, bounds, pairs and
arithmetic, so verdicts and regions are bit-identical.
On the N26-2GT job a 30-copy Lattice fill of an 80-vertex arc-cornered
bracket fell from 15 s to about 4 s with identical poses, and Irregular's
first plan from 66 s to about 26 s, inside Default's 60 s limit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each makes the flat blank of a part bent or rolled along its length,
sized with the bend allowance at the K-factor. Angle and channel bends
are saved on the drawing as 90 degree up bends and etched as an
imported DXF's up bends are. The preview draws each part's section
beside the blank, dimensioned with the formed sizes; a long part's
section is enlarged so it stays readable. K-factor is a plain number,
not a length, in the form.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The raw-string golden picks up CRLF from a Windows checkout while the post writes LF, so the test failed only in the Windows release build. Normalize the golden as CommonLinePostTests does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Head raise, head-lock and single-pass common-line refusals also print from the console, which has no settings dialog or Plate menu. They now point at the post settings and at cutting common lines twice without naming desktop-only paths.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A multi-part pattern tiles from the work area's leading edge, so the copy
before the first one never fits whole. When the tiling leaves room at its
far end, FillLinear now moves it forward by the smallest shift that fits
the most parts of that previous copy and adds them. On an arch/cup
herringbone this fits the cup row under the first arch row: 121 -> 132.
Comparisons against the frozen fillers turn the new step off through an
internal LeadingParts flag and check the default fill separately.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A tabbed part stays in the sheet, so rapids were free to pass over it and
the planner never looked for a way around. Plan Cutting now searches first
with every tabbed outside as an obstacle once its part is cut. Where a pass
stalls at a part whose approach crosses a tabbed part, only the crossed
parts become crossable and the search goes on along the same order. A
capture that search cannot plan is planned as before. Plates without
tabbed outsides are searched once, unchanged.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
5776fa80 dropped a tabbed outside's lead-out when it would reach the lead-in,
which silently changed the user's cutting settings. The emitter now keeps the
lead-out as configured again. Plan Cutting plans strictly first, as before;
only when that is refused because such a lead-out may cut its tab free does it
plan again keeping the lead-outs. Each affected part gets a "Tab lead-out"
issue (new PostVerificationKind.TabLeadOut), is treated as cut free for later
rapids, and the plan is UNVERIFIED, so applying it needs explicit acceptance.
The short reorder pass never settles for such a plan, so a clean route still
wins. Locked, fixed and posted programs keep the incomplete-check finding.
The "no single tab can steady it" support warnings caused more trouble than
they solved, so a tabbed part now counts as steady wherever its tab is: Plan
Cutting and the pre-post review warn only about a part cut with no tab at
all, and a tabbed part stays crossable once cut instead of being avoided as
one that may tip. Entry choice still prefers the steadiest tab point.
The problem-nest corpus is unchanged except N26-2AM, whose baseline is now
BestEffort with 15 tab lead-out warnings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The CAD Converter winds every drawing's outside clockwise and its cutouts
counter-clockwise (ShapeProfile.NormalizeEntities) before building the
program, but the Shape Library built its programs straight from the
generated entities, which run counter-clockwise. A shape part therefore cut
its outside the opposite way from an imported part, and opening it in the
converter showed (and on save, wrote) the reverse of what was nested.
ShapeDefinition.CreateDrawing now normalizes the entities the same way, so
every shape cuts outside clockwise and cutouts counter-clockwise. Tests cover
each shape type, including the pipe flange's holes, and that rebuilding a
shape drawing through the converter's import path keeps its directions.
Drawings already made from shapes keep their stored direction until they are
recreated or saved from the converter.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A tab stops the outside cut short of its entry, and the lead-out leaves from
there. On a counterclockwise outside a line lead-out angles forward, toward
the tab: a 0.1 lead-out at 60 degrees runs 0.05 along the edge, past a 0.03
tab, and crosses the lead-in, so the two cuts sever the tab. The released-
contour check rightly refused every such part, so a plate of support-tabbed
strips found no cut plan at all.
The emitter now drops a tabbed outside's lead-out that touches the lead-in or
passes within a kerf of it, as tabbed cutouts and breakoffs already end at
their tabs. Lead-outs that stay clear and untabbed contours are unchanged.
The tests that expected the crossing leads now expect them left out, and a
new test keeps the check's refusal of a crossing lead-out covered.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Irregular decodes the job once more in full-height strips along X when
like parts group and every part shares one priority. A sheet that can
take all the remaining parts is packed two ways and the better kept:
- Bands: each type of three or more copies as its Lattice pattern in the
narrowest strip that holds all its copies, bands side by side, the
held-back copies and one-offs filling the gaps.
- Strips: each strip holds the largest remaining part, as its band or a
column one to three copies wide, every other part filling its gaps; a
beam of the four densest partial sheets carries strip to strip.
Band patterns are filled one grid unit wider than the spacing so a stack
of rings passes the strict certification, members on a clamp go to the
gap fill, and a short band moves flush to the far edge when that keeps
it off the clamps. The plan replaces the result only by beating it.
On seven sample parts (130 copies, 60 x 120) the layout ends at 102.9"
instead of 107.7", and at 104.6" instead of 108.6" with the desktop's
edge spacing and bottom clamp rail; at about twice the quantities the
second sheet ends at 104.7" instead of 106.2". Every other benchmark job
is unchanged. Solves of these jobs take about twice as long.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The crescent reported as a slide defect (pairs inside the part spacing)
was a measurement artifact: the probe counted the program's opening
rapid as outline, a 0.2 spur outside the disc on the converted part.
Measured on material alone every candidate keeps the spacing, so the
slide solver is unchanged. Adds the rounded, origin-outside crescent
with its hooked first contact and documents the oracle rule.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Plate export ignored each sub-program call's offset, so a planned part's
holes were drawn from wherever the tool happened to be. It also drew a
rapid to every part origin, which sent each cut-off segment (origin 0,0)
to the plate origin and back. Rapids now run from the previous cut to the
next pierce.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Storage Mode and Tools > Options now share a server picker: a Saved
dropdown of every server this PC has used, shown as "Name — URL", with a
Name box for a note on what each one is for and a Forget button.
storage.json keeps the list as `servers`; setting a server adds or
renames its entry, and an existing install lists its current server
unnamed on first load.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Dragging a Shape Library leader on a bolt circle, hole or corner arc now
moves its arrow round the curve so the line stays radial. The flange's
bolt circle is drawn dashed in teal instead of dotted orange, which read
as a solid dimension line.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The pair search slid part 2 in from offsets on a 0.25 step grid, so a pair
that locks in a corner (two interlocking channels) stopped up to a step short
of the tightest fit. Each resting position is now also slid sideways, both
ways, and the new resting positions join the candidates.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The coarse bounding-box pass only stopped at obstacles whose box lay in
the push path, so a copy could drop past a neighbor beside the path and
end inside its spacing. A box push now also stops at an obstacle nearer
than the spacing to the side of the path.
A push ignores a part the copy starts on, so a settle could slide out of
that part and stop clear of it yet inside its spacing. SettlePlacement
now prefers a push order that keeps the part spacing, and a named order
that ends too close falls back to the other order.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Area and the canonical angle were refreshed together only by the Program setter; an in-place program edit needed two separate calls, and UpdateArea kept a stale Area when no material was left. ProgramChanged is now the single entry point (the setter calls it), a program with no material or a null program gives Area 0, and UpdateArea/RecomputeCanonicalAngle are private.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Move ContourSampler to OpenNest.CNC and DrawingAligner with its
AlignmentResult types to OpenNest.Converters: they were the only Geometry
files importing CNC and Converters. Their tests move with them.
CoreLayeringTests scans the Math and Geometry sources against the type
names reflection finds in Core, so neither can name a higher layer again.
Geometry keeps six root-namespace types on an explicit allowlist, and the
files declaring them may reference only Math and Geometry.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Its last callers were four strategy tests; they now use
PartOverlapChecker.FindOverlappingPairs, which also reports
contained and stacked parts.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The console overlap check and the MCP check_overlaps tool counted
crossing points, so a part contained in or stacked on another reported
no overlap. Both now list pairs from PartOverlapChecker.FindOverlappingPairs,
which uses the Intersects verdict and skips cut-off parts.
Plate.HasOverlappingParts stays for now: two test files outside this
change still call it.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
BuildPartPerimeter swallowed every exception. It now guards a missing
program and an outline that forms no shape, and catches only geometry
failures; a null perimeter still makes a cut-off exclude the part's whole
bounding-box span.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Part.CloneAtOffset hands the copy the source's Program instance. The copy
cloned before rotating, but the source still owned the program, so rotating
the source turned the program under every tiled copy while their location
and bounds stayed put.
Program now carries a sticky SharedByParts flag that CloneAtOffset sets, and
a part copies its program before rotating when it does not own it or the
program is shared. The flag lives on the program rather than the part so a
restored cutting state, which reinstates ownership field for field, cannot
re-alias a shared program. Unrotated copies keep sharing one instance, which
the fill and overlap caches key on.
Update, ApplyLeadIns and ApplySingleLeadIn install a fresh program and now
own it, saving a needless copy on the next rotate.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On an enclosed machine a cutout slug that tips once cut free can stand up
above the sheet and catch the enclosure door when the pallet changes. The
head already keeps off cut cutouts, so this is about clearing the door, not
the head.
Cutting Settings > Cutouts > "Slice slugs the support grid can't hold
level" (CuttingParameters.SliceTippingSlugs, off by default, saved per
machine thickness and written only when on) makes Plan Cutting cut each
such slug along the bed's contact lines (grid rows and columns, slat center
lines) before the cutout, so no piece keeps a contact and the pieces drop
between the supports. Each slice stops a kerf short of the cutout, so the
pieces stay attached until the cutout's own kerf frees them together. A
slug the bed holds level, or one on no contact, is left whole; a cutout
holding another part or another of its part's cuts is never sliced.
Slices are break cuts emitted right after the drawing's own break cuts,
pierced on themselves and led straight back to their start. The
released-contour proof now leaves out straight break cuts lying wholly
inside one of the part's closed holes, since the grid cells they free are
scrap; break cuts in material still take part. The plan fingerprint only
changes when the setting is on.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Finding a part on the nest server meant scrolling 40k drawings: the library
could only match an exact thickness or customer and knew nothing about a
drawing's size or holes. The library browser gets a Filter dialog with
inclusive ranges, and the query API takes them.
The server never parses packages and stays off IO, so the server worker now
measures each package beside its nest jobs (bounding sides, net area, closed
cutouts inside the outline) and stores the summary keyed by package hash
(schema v19). Identical geometry is measured once, an unreadable package is
recorded once instead of retried forever, and size or hole limits match only
measured drawings. Thickness ranges compare in inches across units and keep
the library's rule that a drawing saved without a thickness suits any.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>