The Mechanics of CNC Manufacturing