Surface qualification toolpath optimization for hybrid manufacturing