Automatic Robot Path Planning for Visual Inspection from Object Shape