1. A method of controlling a robot system, the method comprising the steps of: a. providing a tool supported by a moveable mechanism of the robot system; b. providing a workpiece supported by a holder and providing to a processor a feature of the workpiece; c. generating an image of the workpiece to the processor; d. the processor extracting a data from the image, the data relating to the feature of the workpiece; e. the processor generating a continuous three-dimensional path along the workpiece using data extracted from the image; and f. controlling the robot system to move the tool along the generated path.