Optimal contour orientations for machining of free{form surfaces