Changes cube to vertice and indice arrays