Inspection of Parts with Irregular Shapes