Changed algorithm: - Added logic to deal with the situation where: -- The sum of lengths of the sections is as long as the reference line length, and -- One of the sections inbetween is shifted, resulting in a premature end of the chaining, and -- therefore the endpoints of the referenceline and the final section do not match - Fixed failing tests due to mapping a distance as a key instead of as a value WTI-1699
Changed algorithm: - Determine the shortest distance from the point to be chained to the next section - Add a clipping functionality to clip sections in an ordered way WTI-1699