PDA

View Full Version : pb with gluPartialDisk



soda
07-25-2003, 04:34 AM
Hi,

I'm working with an ortho2D projection and draw some primitives on the screen

I'm using glut to draw circles and arcs

For arcs I'm using gluPartialDisk but the result is not 100% what I'd like to have

This is what I do :

gluPartialDisk (qobj, 0,RADIUS_X , 180, 1,
0, 180);


I get


|\
| |
|/

but I don't want to have a line connecting the ends of the arc :

\
|
/

Is this possible to do that with glut ?

Thx in advance !


[This message has been edited by soda (edited 07-25-2003).]

[This message has been edited by soda (edited 07-25-2003).]

soda
07-30-2003, 08:37 AM
I found the problem :

I have to set the inner radius equals to outer radius !

gluPartialDisk (qobj, RADIUS_X ,RADIUS_X , 180, 1,
0, 180);

and now all is ok !