void AddSpan(MeshConstructor mc, MeshVertex[,] mx, int latitudeSpanIndex, int longitudeSpanIndex, int submesh = 0) { MeshVertex topLeft = mx[latitudeSpanIndex + 1, longitudeSpanIndex]; MeshVertex topRight = mx[latitudeSpanIndex + 1, longitudeSpanIndex + 1]; MeshVertex bottomLeft = mx[latitudeSpanIndex, longitudeSpanIndex]; MeshVertex bottomRight = mx[latitudeSpanIndex, longitudeSpanIndex + 1]; mc.AddTriangle(topLeft, topRight, bottomLeft, submesh); mc.AddTriangle(bottomRight, bottomLeft, topRight, submesh); }