An optimal path-generation algorithm for manufacturing of arbitrarily curved surfaces using uncalibrated vision