   Dihedral group
  Hi there I am coding in opengl a paint tool, which allows to draw cyclic and dihedral groups. I have made it for the cyclic groups but have problems with the dihedral ones.void motion(int mousex,int mousey){#define num 2220GLdouble g,t,p;GLdouble h=20;g=h;GLdouble winkel=360/h;GLintLine list[num];GLintLine list2[num];list[++last].x =(mousex)-(width/2);list[last].y   =(mousey)-(height/2);glEnable(GL_LINE_SMOOTH);if (last>=1){glScaled(1, -1, 1);for(h+1;h>0;h--){glRotated(winkel, 0, 0, 1);glBegin(GL_LINE_STRIP);for(int i=last-1;i<=last;i++){glVertex2i(list.x,list.y);}glEnd();} }glDisable(GL_LINE_SMOOTH);glFlush();}The dihedral group works but i get gaps between the line. Because the programme is always reflecting a tiny part of the line. I have tried some other things, but at the moment i am stuck and havent got a clue how to solve this. It is probably very easy but i am cant see through. Maybe some ideas. I would be very gratefulThans a lotCheers
  Any ideas, comments?Is my question to easy or not understandable?Have you any questions to my question?   ;  If you are using thick lines, then depth testing can be an issue for pixels that are rendered to twice.Try glDepthFunc(GL_ALWAYS)   