Tool offset as function of cutting depth