opengl切削仿真
代码说明:
#include "stdafx.h" #include #include #include #include void solidCylinder(GLdouble radius, GLdouble height, GLint slices, GLint stacks) //»Ò»¸öÔ²ÖùÌ壬ÓÃDiskÀ´¸ÇסÉÏϵ×Ãæ { GLUquadricObj* qobj = gluNewQuadric(); gluCylinder(qobj, radius, radius, height, slices, stacks); //slicesÀàËÆÓÚ¾¶È£¬stacksÀàËÆÓÚγ¶È glScalef(-1.0, 1.0, -1.0);
下载说明:请别用迅雷下载,失败请重下,重下不扣分!