Straightness and flatness measurement