Cutting of mechanical parts