Get vertex of grid surface cells instead of center

I’m sure it’s pretty easy but I need to get the vertex instead of the centers, and still being able to get the points ordered and being able to flip the matrix and get the polylines and everything else

I would upload the gh file but chrome it’s crashing when uploading a file