Implement 3d case for forall cells forall vertices.