Updating the orientation values of rotated pipes