Reduce this example to 2D. The 3D example has too many degrees of freedom.