Add weld melt to cut length
NOTE: A must be > 0, B must be > 0, a must be < D, if a = 0 then C = A, if a = D then B = C