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>
This commit is contained in:
ajandClaude Opus 5.5 committed 2026-11-30 22:11:45 -05:00
1 parent 6834f2905a
commit 55e8ea6084
6 files changed
+322 -63

No files matched your search

+6 -2
View File
@@ -1,12 +1,16 @@
# Expand Spacing
`Plate > Expand Spacing` moves selected parts by translation only. Any selected part may move: a pair of selected parts shares each push (the later part takes half, the earlier part the rest, and the later part whatever its partner has no room for), so the selection opens about its middle and a part on the edge leaves the push to its partner. A selected part pushes away from a nonselected part alone, and nonselected parts remain fixed. The search probes ever wider spacings (doubling, then bisecting between the last spacing that converged and the first that failed) and applies the widest one that converged. The plate retains its own `EdgeSpacing` floor; the command does not change `PartSpacing` or `EdgeSpacing`. To push apart only the parts the overlap check flags, use [Fix Spacing](fix-spacing.md).
`Plate > Expand Spacing` moves selected parts by translation only. Any selected part may move: a pair of selected parts shares each push (the later part takes half, the earlier part the rest, and the later part whatever its partner has no room for), so the selection opens about its middle and a part on the edge leaves the push to its partner. A selected part pushes away from a nonselected part alone, and nonselected parts remain fixed. The search probes ever wider spacings (doubling, then bisecting between the last spacing that converged and the first that failed) and applies the widest one that converged. The command does not change `PartSpacing` or `EdgeSpacing`. To push apart only the parts the overlap check flags, use [Fix Spacing](fix-spacing.md).
## Edge strips
The strip of sheet between a part and the plate edge grows with the spacing: at a target spacing *s*, each selected part's box stays at least *s*/2 from every plate edge, and never inside that side's `EdgeSpacing`. A web between two parts takes heat from a cut on each side, while an edge strip takes it from one, so a strip half as wide holds about as much material per cut. Until *s* passes twice the edge spacing the strips are just the edge spacing, as before. Beyond that, a part closer to the edge than *s*/2 is pushed straight inward, as far as material and its pair floors allow. A probe converges only when every strip holds, so a part boxed in between the edge and a fixed part caps the spacing at the widest *s* its strip and gap can share. The strip never counts toward the reported spacing. When no wider spacing converges, the layout keeps its entry spacing, and edge parts move inward only as far as that spacing's floors allow. Cut-offs run to the edge by design and have no strip, and a part already outside the work area is reported as an edge violation instead. A clamp keep-out stays a hard boundary with no strip.
## Repeating patterns
A selection that repeats on a lattice, such as a fill, is stretched as one pattern instead of going through the pair search below. Parts of one drawing at one rotation form a motif group, and every group must sit on the same two lattice translations (one for a single row) to within 2% of a pitch. Each group needs at least two parts, and one group needs at least three for a row or four for a grid, because any two or three points fit some lattice. A single-drawing selection that fits no one lattice also counts when it forms rows along X (or Y): at least two rows of at least two parts, one of at least three, whose steps along the row are whole multiples of one shared pitch. Such rows may stack at any spacing and offset, as when staggered rows are topped by straight ones, and each part then stretches on its own. Cut-offs, overlapping selections and selections that start outside the work area always use the pair search.
The lattice is scaled along X, then along Y, about its center, and each part moves by the displacement of its motif copy's lattice point, so interlocked pairs and other multi-part motifs stay rigid. Along each axis the largest scale is used whose stretched selection fits the work area and keeps every floor: no selected gap closes below the smallest selected gap at entry, a gap to a nonselected part closes no further than that, cut-offs keep their entry gaps and no part enters a clamp keep-out. A part may not pass through a nonselected part, cut-off or clamp on its straight way from the entry layout. The stretched selection is tried centered on where it was, then held at its low edge, then at its high edge. An axis with no room keeps its pitch, so a fill whose rows run edge to edge along X only opens its rows along Y: the row gap stays and the diagonal gap grows. The status bar reads "Spread the repeating pattern" with the smallest gap, or says the pattern has no room to spread.
The lattice is scaled along X, then along Y, about its center, and each part moves by the displacement of its motif copy's lattice point, so interlocked pairs and other multi-part motifs stay rigid. Along each axis the largest scale is used whose stretched selection fits the work area, less edge strips on that axis's two sides of half the smallest gap the stretch widens (between parts whose lattice points differ along the axis, so a row gap does not hold back a stretch along the rows), and keeps every floor: no selected gap closes below the smallest selected gap at entry, a gap to a nonselected part closes no further than that, cut-offs keep their entry gaps and no part enters a clamp keep-out. A part may not pass through a nonselected part, cut-off or clamp on its straight way from the entry layout. The stretched selection is tried centered on where it was, then held at its low edge, then at its high edge. An axis with no room keeps its pitch, so a fill whose rows run edge to edge along X only opens its rows along Y: the row gap stays and the diagonal gap grows. The status bar reads "Spread the repeating pattern" with the smallest gap, or says the pattern has no room to spread.
Every selected/selected and selected/nonselected pair has a clearance floor, measured against material with cutouts subtracted. A pair of parts may close to the spacing being tried but never below its own starting gap when that gap is already smaller, so a wide gap can be spent evenly across a layout and a tight one cannot shrink. A cut-off always keeps its full starting gap. A clamp is a hard edge, like the work-area edge: its keep-out (the zone grown by the clamp clearance) may be approached until a part touches it but never entered, and the gap to it neither has to reach the spacing being tried nor counts toward the reported spacing. A later move may reuse slack opened by an earlier move. Existing overlaps are accepted for attempted separation; a remaining overlap is reported as a violation, not a successful positive gap. Geometry whose material side is unresolved at sub-scale is conservatively reported as a violation when native extents intersect; that negative marker is not a measured penetration depth. An unchanged selected part already outside the work area also yields an edge violation and zero credited spacing. Temporarily blocked pairs are retried after another part moves, while a pass without positive movement stops the relaxation. An individual violation's `BlockedByEdge` flag is true only when the work-area edge is the first limiting cause; the desktop status currently displays a blocked-pair count, not those individual causes.