}
public int addVertexData(ArrayList<MutableFloat> list, int index, double x, double y,
double z, double tx, double ty, Color c) {
while (index+9 >= list.size())
list.add(new MutableFloat());
list.get(index+0).val = (float)x;
list.get(index+1).val = (float)y;
list.get(index+2).val = (float)z;
list.get(index+3).val = (float)tx;
list.get(index+4).val = (float)ty;