PDA

View Full Version : HELP-How to create 90deg or 180deg bend pipes????



04-04-2002, 06:16 AM
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

Morglum
04-04-2002, 07:49 AM
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).

Morglum

J P
04-04-2002, 01:52 PM
Also there is a library that will do this. See

GLE Tubing and Extrusion Fact Sheet http://linas.org/gle/index.html