HELP-How to create 90deg or 180deg bend pipes????

Any idea to create 90deg or 180deg bend pipes?

Thanks in advance

P.S: I used gluCylinder and gluDisk to create pipes. I think i have to use glTranslate or glRotate but i can’t figure out how to create the curve

Personnally I’d compute the vertices’s location manually (using cos and sin). This shouldn’t be too hard… In any case it’ll be much easier and much more efficient than drawing many glucylinders (also because you’ll have the possibility to use vertex arrays).


Also there is a library that will do this. See

GLE Tubing and Extrusion Fact Sheet