PDA

View Full Version : an easy problem



thunder2001
04-19-2004, 10:00 PM
how can i draw a solid cynlinder?i have used the function:glucylinder(),but it only can create a
cylindrical face,not a solid cynlinder!Please give me a direction!thank you very much!

04-19-2004, 10:20 PM
I suggest you draw it yourself. Just generate the base circle using sin/cos, draw the sides with a triangle strip, the caps with triangle fans.

mikael_aronsson
04-19-2004, 11:36 PM
Another way that might work is to create a gluCylinder and then two gluDisk's. One at each end of the cylinder for the caps, if you make sure the number of line segments of the disk's are identical to the number of quads in the cylinder it should look pretty ok.

Mikael

thunder2001
04-20-2004, 04:14 PM
thank you very much!i have known how to do it!thank you!