3D Disk mathematic

Hello.
Anyone could help me, I look for a way to create a 3D disk, like a CD-ROM but thicker…
with normals/texture coords. Without use Glut or GLU, juste mathematics…

Thanks

Martin.
eraquila@bigfoot.com

Hi !

Couldn’t be simpler, you know how to create a circle with math right ?, a disk is just two circles…, you use GL_TRIANGLE_FAN for each circle, translate one of them a bit for the thickness of the disk, then you create GL_TRIANGLES or GL_QUADS between the two circles to create the sides of the disk.

If you want to know how GLU does it, you can download the source code for Mesa (or the GLU source code from sgi), and have a look at it yourself.

Mikael

Thanks for this quickly response micheal