Courseplay / CourseGenerator

Fieldwork Course Generator 2.0
GNU General Public License v3.0
9 stars 4 forks source link

feat: overlapping row last #15

Closed pvaiko closed 1 year ago

pvaiko commented 1 year ago

Make the best effort to have the row that overlaps the headland (or the last row when there is no headland) the last row we work on. This usually works for the alternating/skip pattern, no guarantee for others.

This is a chicken and egg problem especially with fields with multiple blocks as there we don't know where are we going to enter the block. One could shift the rows after everything else is done, but that would potentially screw up non-rectangular fields, and/or fields with islands.

This solution should work for 99% cases with rectangular, single block fields.

5