title: How Can I use glClipPlane more than 6 times in OPENGL?
body: <p>I have a Sphere . I would like to clip some planes like below picture. I need more than 10 clipping plane but maximum glClipPlane limit is 6. How can I solve this problem.</p>
  
  <p><img src="https://i.stack.imgur.com/azayo.png" alt="enter image description here"></p>
  
  <p>My Sample Code below;</p>
  
  <pre><code>double[] eqn = { 0.0, 1.0, 0.0, 0.72};
          double[] eqn2 = { -1.0, 0.0, -0.5, 0.80 };
          double[] eqnK = { 0.0, 0.0, 1.0, 0.40 };
          /*  */
          Gl.glClipPlane(Gl.GL_CLIP_PLANE0, eqn);
          Gl.glEnable(Gl.GL_CLIP_PLANE0);
          /*  */
          Gl.glClipPlane(Gl.GL_CLIP_PLANE1, eqn2);
          Gl.glEnable(Gl.GL_CLIP_PLANE1);
  
          Gl.glClipPlane(Gl.GL_CLIP_PLANE2, eqnK);
          Gl.glEnable(Gl.GL_CLIP_PLANE2);          
  
  
  
          //// draw sphere           
          Gl.glColor3f(0.5f, .5f, 0.5f);
          Glu.gluSphere(quadratic, 0.8f, 50, 50);
          Glu.gluDeleteQuadric(quadratic);
          Gl.glDisable(Gl.GL_CLIP_PLANE0);
  
          Gl.glDisable(Gl.GL_CLIP_PLANE1);
          Gl.glDisable(Gl.GL_CLIP_PLANE2);
  </code></pre>