an easy problem

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!

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.

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

thank you very much!i have known how to do it!thank you!