Originally Posted by

**wmelgaard**
The example that I provided (creating a sphere from a single triangle strip) in this forum sounds close to what you are trying to do.

assume:

float curve[n][npoints][3]; // this assumes that all curves have the same number of points

int i, j;

curve[i][j][0] = x;

curve[i][j][1] = y;

curve[i][j][2] = z

for(i=0; i , (n-1); i++){

glBegin(GL_TRIANGLE_STRIP);

for(j=0; j < npoints; j++){

glVertex3fv(curve[i]j]);

glVertex(3v([i+1][j]);

}

glEnd();

}

This is just the code fragment that draws the triangles.

If curves intersect (share common vertices) you could have problems. One simple way to avoid that is to move one of those common vertices just a bit.