2.5D machining