Context dependent automatic view planning: the inspection of mechanical components