Off-line view planning for the inspection of mechanical parts