Accurate and automatic alignment of range surfaces