GLU Quadrics

Quadrics are various smooth surfaces described by functions like:

x2 + y2 + z2 = r2

The basic GLU quadrics are spheres, cylinders, cones, and disks.

To draw one, create a "quadric object" and pass it to the appropriate GLU function. There are functions to control how a quadric is drawn - with points, lines, or polygons; with or without lighting; with or without texturing.

quadric = gluNewQuadric()
gluQuadricDrawStyle(quadric, GLU_LINE)
gluSphere(quadric, 2.5, 32, 24)

Example code: gluQuadrics.py