I wish to draw this polygon with 6 coodinates (front face) which are (-x,y,1),(-x,-y,1),(0,-y,1),(0,y-d,1),(-w,y-d,1),
(-w-d,y,1). The arc is between the last 2 coodinates with an angle of 90deg. And d<w.
I have problems with the arc part, below is what i did:
glBegin(GL_POLYGON);
glNormal3f( 0.0f, 0.0f, 1.0f);
glVertex3f(-x, y, 1.0f);
glVertex3f(-x,-y, 1.0f);
glVertex3f(0,-y, 1.0f);
glVertex3f(0,y-d,1.0f);
float arcx = dcos(i);
float arcy = dsin(i);
for (i=0;i<= pi/2; i++){
glVertex3f(arcx,arcy,1.0f);
}
glVertex3f(-w-d, y, 1.0f);
glEnd();
think this is nt very correct. Can someone help?
[This message has been edited by coda (edited 01-10-2004).]