Gantry five-axis machining