Improving mesh subdivision
Well, I have found the mysterious bug that we always have when we code something. The mesh subdivision algorithm is recursive, as you could imagine viewing the images. In each pass, it divides each face in three ones. So we have the old face and two new ones, and then we assign the appropiate vertexes to each face. In the next iteration we have to subdivide too the faces we had created previously, but I had forgotten to change the maximumFaces index, so it didn't divide properly. As you can see in the next images, I have fixed it!! :-)
Mesh subdivision with 2 passes

Mesh subdivision with 3 passes

Mesh subdivision with 5 passes

Next step is playing with the vertexes! ;)

