gl.glStencilFunc (GL.GL_EQUAL, 0x00, 0x01);
gl.glStencilOp (GL.GL_KEEP, GL.GL_KEEP, GL.GL_KEEP);
//DRAW OUTLINE
gl.glEnable(GL.GL_LINE_SMOOTH);
gl.glLineWidth(1.0f);
gl.glColor4f(0.0f, 0.0f, 0.0f, 1.0f);
gl.glBegin (GL.GL_LINES);
for (int i = 0; i < allVertsBezierResolved.length; i++) {
Vertex vertex = allVertsBezierResolved[i];
gl.glVertex3f(vertex.x, vertex.y, vertex.z);