   GL_LINE_LOOP revist
  I am trying to mark points and form a loop around the face in front. Then I rotate my object to get another face as front face and try to enclose it in a loop. Problem is : When I successfully form the first loop and then rotate the object, the loop disappears. Secondly, I am unable to form 2 loops at a time that are disjoint. Here is code section I am trying to play with :   if(bFlag_LineDraw) //removed temp  {  //while(piClickTracker[k])   { glMatrixMode(GL_MODELVIEW); glPushMatrix();   glLoadIdentity();   glRotatef(fAngle_Y , 0.0 , 1.0 , 0.0);  //Move left    glRotatef(fAngle_X , 1.0 , 0.0 , 0.0);  //Move above    glRotatef(fAngle_Z , 0.0 , 0.0 , 1.0);  //Move above    if(!(k % TWO))glColor3f(1.0 , 0.0 , 0.0);    elseglColor3f(0.0 , 00 , 1.0);   while(piClickTracker[k])   {   glBegin(GL_LINE_LOOP);    //glBegin(GL_LINES);   while(j < piClickTracker[k])    {   .  glVertex3f(SHIFT_COORD_SIGN * pfArray,  pfArray, pfArray ); //Modified ..temp  i += 3;  j++;  }   j = 0;   iTemp += 1;   ++k;glEnd();glPopMatrix();    }//Outer While Ending.   //glPopMatrix();    }    bFlag_LineDraw = FALSE;   } </pre>