Metal 3d printer integrated with a CNC machine