Need some help understanding Ocean

In Nikko’s Ocean lines 181 to 213 where he does the Tchebyshev distance I generally understand what he’s doing, making a denser mesh closer to the view source. I’m lost as to what tile.layer does. I also see that he created a blank game object and then applied a mesh but where does that mesh get sized and assigned?

I’m lost as to what’s happening here.

tiles_LOD[chDist].Add (tile.GetComponent(MeshFilter).mesh);

Where I get really lost is when I try to figure out how it’s actually applied. I’ve seen this code but A. what is happening with tiles_LOD[LOD][k]? What’s happening w/ the double brackets?

for (k=0;k<tiles_LOD[LOD].length;k++) {
meshLOD = tiles_LOD[LOD][k];
meshLOD.vertices = verticesLOD;
meshLOD.uv = uvLOD;
}

looks like a simple array of arrays or grid.