kallaballa / ctrl-cut

Get your laser cutter under control
GNU General Public License v2.0
63 stars 7 forks source link

Proper Relative/Absolute Cut Handling #118

Closed meksor closed 3 years ago

meksor commented 3 years ago

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.