View Full Version : partial cylinders

12-11-2000, 07:48 AM
Is there a function in the glu library like gluPartialDisc() but instead of a disc it is a partial cylinder? If not, how would I code a partial cylinder, i.e. a cylindar that has an arc length of pi/3?

12-12-2000, 03:11 AM

void gluCylinder(GLUquadricObj *qobj,
GLdouble baseRadius,
GLdouble topRadius,
GLdouble height,
GLint slices,
GLint stacks)

12-13-2000, 04:37 PM
I know about that function, but it does not provide a means of producing half, or a quarter of a cylinder; it only produces the entire 360 degrees of revolution. Any ideas?

12-13-2000, 04:41 PM
Instead of using glCylinder, is it possible to draw two arcs and two lines connecting them and then fill in the resulting shape?

The Wolf
12-13-2000, 06:07 PM
hate to say this, but i think the only way of doing that is by using a bezier patch (see NeHe tutorials) or a NURBS patch. I kinda wish there was a function that did that.