View Full Version : Culling of unwanted polygons or quadratics
04-25-2004, 05:23 PM
Hi, I noticed that for quadratics, there are various glu commands like gluCylinder, gluSphere, etc.. There is also gluDisc and gluPartialDisc, but what if I want to draw a 'partial' cylinder or sphere? is there something similar to gluPartialDisc or do I have to do culling?
For general culling, what is the proper command and method to go about doing it? Can anyone give me any pointers? thanks!
04-25-2004, 10:56 PM
Most of the glu primitives are pretty simple and does not support any more complex stuff, but if you want to create your own partial cylinder it is pretty simple, if you can do a circle you can do a cylinder, and if you can do a circle you can do a partial circle... (sin,cos)
You can always have a peek at the how glu does it, download the source code for Mesa and have a peek.
04-26-2004, 07:02 PM
Hi, Thanks for replying!!
but do you know where I can download the source for glu? I am a newbie, and is not that proficient in coding as yet.
04-27-2004, 12:42 AM
You can find the source code for Mesa at:
And the SGI OpenGL sample implementation can be found at:
04-27-2004, 06:12 PM
Hi, thanks for the help! I'll look through the websites!
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.