Saving GLUTessellation Data

This may be a stupid question but I am still fairly new to JOGL, so here goes:

I would like to save the data that is generated by GLUTessellatorCallback interface (when implemented). The polygons I will be rendering could be quite complex and so I would like to save the tessellated polygons as an array that can be used for rendering later. Is this possible? If so, how?

Any hints/simple code would be great. Thanks in advance.

Probably the simplest way to do this is with a display list. The syntax is something like this:


int list = gl.glGenLists(1);
gl.glNewList(list,GL.GL_COMPILE);
...
your call to the Tessellator here
....
gl.glEndList();

Then, when you want to actually render into the scene, call
gl.glCallList(list);

There are other techniques like vertex buffer objects and the like, but that would probably require a major re-write of your Tessellator. This technique is pretty quick and easy.