Bending Pipe

Is there anyone know how to draw a bending pipe? It is like a cylinder pipe forming an arc shape, or like a partial donut. Thanks.

[This message has been edited by jimmy001 (edited 06-06-2002).]

The easiest way would be to model it in 3ds max, maya, milkshape 3d, etc and load the model in your program.

-SirKnight

Originally posted by jimmy001:
[b]Is there anyone know how to draw a bending pipe? It is like a cylinder pipe forming an arc shape, or like a partial donut. Thanks.

[/b]

I partial donut would be an arc shape. All you have to do is have a circle that you rotate by a certain increment until you reach the desired final angle. You use that circle to construct your polygons.

There is a EXT_vertex_weighting demo at nvidia that does this the easy way.

V-man