Vertex[] z1 = createUnitCrossSection(0, 0, maxZ, numCoords + 1, 1);
Vertex[] result = new Vertex[numCoords * 4];
for (int i = 0; i < numCoords; i++) {
int index = i * 4;
result[index] = new Vertex(z0[i]);
result[index + 1] = new Vertex(z0[i + 1]);
result[index + 2] = new Vertex(z1[i + 1]);
result[index + 3] = new Vertex(z1[i]);
}
return result;
}