Stripe patterns and the eikonal equation