The dynamical distance and intrinsic structure of the globular cluster ω Centauri