Using rigid motion constraints for the registration of free-form surfaces