PDA

View Full Version : How can i draw cylindrical arrow on the end of each vector



GMV
03-15-2002, 06:03 AM
Hi all!
Please, help me!
I build 3D vector field.
Please hint me, how can i draw cylindrical arrow on the end of each vector.
Thx in advance!

Furrage
03-15-2002, 06:51 AM
gluCylinder sounds like what you're looking for.

nexusone
03-15-2002, 08:50 AM
Another way would be with glutSolidCone for the tip.

But just using gluCylinder will work for both.

first gluCylinder to draw a long cylinder.
second gluCylinder to make point, the bottom radius greater then the first cylinder and the top radius 0 to make a point.

-------> look's something like this.

http://www.opengl.org/discussion_boards/ubb/smile.gif


Originally posted by GMV:
Hi all!
Please, help me!
I build 3D vector field.
Please hint me, how can i draw cylindrical arrow on the end of each vector.
Thx in advance!