How to calculate a tube

Started by strange, January 28, 2004, 14:45:14

Previous topic - Next topic

strange

Hi,

I would like to have a tunnel or tube in my scene. How does the mathematics work if I would like to store the vertices in an array and have to calculate them without using the OpenGL library.

Actually I would prefer to set a path and the algorithm is calculating the tube around it.

I just can't figure out how to do this and haven't found any tutorial.

thanx

vilm

some examples in c of creating torus and cylinder objects..

http://math.ucsd.edu/~sbuss/MathCG/OpenGLsoft/

not tried them myself btw..

cheers

- vilm