Begin of grid mesh support.