Attitude and position determination of a known 3D object