Fast Selection

Hi everyone,

I have some static geometry that is being drawn at each frame. Also, at each frame, I would like to find out which of the primitives were inside the view frustum, and which we out. Currently, I am using glSelect mode to find the primitives inside the view frustum. However, with this approach, I have to draw each primitive separately, i.e. do a GlBegin() and GlEnd() for each primitive separately… this is slow. Is there any way (i.e. using something like vertex arrays) so that I can do this selection faster ?

Thanks
-Nabil.