glBegin(GL_QUADS);glColor4g(1.0,0.0,0.0,1.0);for ( int curveNum = 1; curveNum < totalCurveNum; curveNum++ ) { QVector<double> &data = curvesMatrix[curveNum]; int dataSize = data.size(); for (int i = 2; i <= curvesMatrix[curveNum] - 1; i++) { glVertex3d(i -1, curvesMatrix[curveNum][i-1], z); glVertex3d(i, curvesMatrix[curveNum][i], z); glVertex3d(i, curvesMatrix[curveNum-1][i], z-zStep); glVertex3d(i -1, curvesMatrix[curveNum-1][i-1], z-zStep); } z += zStep;}glEnd();