Inspecting Parts with Changing Position and Orientation