This PR makes the RdEncoder only encode absolute cuts if the segments supplied by ctrlcut are too long to encode in 13 bits (>8192 micrometers). It will be the responsibility of the rest of the ctrl cut code to supply vector data in the right resolution. Also there is now a "chop" function which is used to chop segments into parts that do not exceed a given size on the x and y axes.
This PR makes the RdEncoder only encode absolute cuts if the segments supplied by ctrlcut are too long to encode in 13 bits (>8192 micrometers). It will be the responsibility of the rest of the ctrl cut code to supply vector data in the right resolution. Also there is now a "chop" function which is used to chop segments into parts that do not exceed a given size on the x and y axes.