Baumgarte ray-stretching method