Orthogonal grid generation