optimized the vertices array to a geometry array storing the vertex, the normal and if necessary the texture