Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] help using gluDisk

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] help using gluDisk


Chronological Thread 
  • From: "Bo Schwarzstein"<>
  • To: "cgal-discuss"<>
  • Subject: Re: [cgal-discuss] help using gluDisk
  • Date: Mon, 5 May 2008 22:37:49 +0800

Title: Mail
Hi, try to use like this
 
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
glTranslatef(x,y,z);//x,y,z is your position
/*
Other Stuff
*/
gluDisk
 
glPopMatrix();
 
If you have massieve disk, I suggest you have a look at the glu source code, manually implement it, load the all vertex into a vertex buffer object, then draw, it will be much more efficient than OpenGL immediatly mode.
 
 
Bo Schwarzstein
2008-05-05
----- Original Message -----
From:
To:
Sent: 2008-05-04, 00:45:59
Subject: [cgal-discuss] help using gluDisk

Houston - got a trouble here...

Consider the small thread:
---------------------------------------

glColor3ub(0, 0, 0);

GLUquadricObj* quadricPtr;

quadricPtr = gluNewQuadric();

gluQuadricDrawStyle(quadricPtr, GLU_LINE);

gluQuadricNormals(quadricPtr, GLU_SMOOTH);

gluDisk(quadricPtr,10.0f,15.0f,5,1);

glFlush();

glutSwapBuffers();
---------------------------------------------

It works fine, draws a disk which the point coordinates of the center are (0,0), and that's okay.
Suppose now I need to draw a disk at any position (x,y), how do I implement it?

can you help me on this issue?

Best Cordial Regards,
m.s.l.f





Archive powered by MHonArc 2.6.16.

Top of Page