Actually those planes are not connected (they do not share vertices), but I only create one mesh (one D3DXCreateMesh call).

This is a thing I want to change.

I also want to add a check for "bigger" planes, to save more polygons/triangles.