View Full Version : an easy problem
04-19-2004, 09: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!
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.
04-19-2004, 10: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.
04-20-2004, 03:14 PM
thank you very much!i have known how to do it!thank you!
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.