unsigned int face[9];
for (int i = 0; i < 9; i++)
{
double value = face[i] - 1;
faces.push_back(value);
}

for (int f = 0; f < (int)faces.size(); f += 3) {

int...