fix(planning): route a cut-off from its start to its far end

A cut-off always runs away from its fixed edge: the origin side, the only
edge guaranteed to be a real sheet edge. The part order is proposed as a
traveling-salesman path over one point per placement, and a cut-off's
point was the middle of its line. The route did not know the tool must
arrive at the line's start and leaves at its far end, so the parts
before a sheet-splitting line finished level with its middle, and the
rapid down to its start crossed parts already cut.

Each placement now has an entry and an exit point; they differ only for
cut-offs (start and departure). Nearest neighbor and Or-opt go on from
each part's exit, and 2-opt costs a reversed run along its own directed
legs; with no cut-off on the plate the exits are not passed and the
symmetric route is unchanged. The part cut before a cut-off faces its
start.

Cut-off direction is not chosen here: the order reads each cut-off's start
and end from its program as given, and the joint search may still reverse a
head-locked far-edge segment.
This commit is contained in:
aj committed 2026-11-01 16:51:09 -05:00
1 parent 277719a1d6
commit 4e92d0e8f3
6 files changed
+196 -27

No files matched your search

+6 -1
View File
@@ -198,7 +198,12 @@ strip lines were added, and the segments are placed into that plan afterwards (s
[cutoff segments](#cutoff-segments) below). The order is an open
traveling-salesman path over part centers from the start point: nearest neighbor,
then 2-opt reversals and Or-opt moves of one to three parts, never placing a part
before a cutoff or nested-part prerequisite. A part with other parts nested in its
before a cutoff or nested-part prerequisite. A cutoff is not a center: the path reaches
it where its cut starts and leaves from where it ends (read from its program as given;
the search may still reverse a head-locked far-edge segment), and a reversed run is
costed along its own legs from each part's exit. The parts
before a line that splits the sheet therefore finish beside its start, and the part cut
just before it faces that start. A part with other parts nested in its
cutouts (a host) is cut after all of them, so the tool reaches it from whichever was
cut last, and from the middle of a crowded cutout every straight approach crosses a
finished neighbor. The nested parts of each host are therefore toured as one run,