A Murray
A Murray

Reputation: 421

Extrusion in OpenGL

Is there any way to extrude gluPartialDisk in OpenGL - have been looking around but cant seem to find one. If there isn't any way is there something similar I can look at.

Upvotes: 0

Views: 722

Answers (2)

Mahmoud Fayez
Mahmoud Fayez

Reputation: 3459

Take a look at this one it contains code to draw partial cylinder.

http://www.opengl.org/discussion_boards/showthread.php/145831-Source-code-for-partial-cylinder

Upvotes: 2

Nicol Bolas
Nicol Bolas

Reputation: 474116

There is no function in OpenGL to do this (note: gluPartialDisk is not an OpenGL function. It's a GLU function, which is not part of OpenGL itself). So if you want to do extrusion, you'll have to compute the vertices yourself.

Upvotes: 3

Related Questions