325 inside << QVector3D(0.0, iRad, 0.0); |
325 inside << QVector3D(0.0, iRad, 0.0); |
326 outside << QVector3D(0.0, oRad, 0.0); |
326 outside << QVector3D(0.0, oRad, 0.0); |
327 QVector<QVector3D> in_back = extrude(inside, depth); |
327 QVector<QVector3D> in_back = extrude(inside, depth); |
328 QVector<QVector3D> out_back = extrude(outside, depth); |
328 QVector<QVector3D> out_back = extrude(outside, depth); |
329 |
329 |
330 // Create front, back and sides as seperate patches so that smooth normals |
330 // Create front, back and sides as separate patches so that smooth normals |
331 // are generated for the curving sides, but a faceted edge is created between |
331 // are generated for the curving sides, but a faceted edge is created between |
332 // sides and front/back |
332 // sides and front/back |
333 Patch *front = new Patch(g); |
333 Patch *front = new Patch(g); |
334 for (int i = 0; i < k; ++i) |
334 for (int i = 0; i < k; ++i) |
335 front->addQuad(outside[i], inside[i], |
335 front->addQuad(outside[i], inside[i], |