Toolpath Generation for 3-Axis CNC machining