i would like to know which is the fastest way to perform a selection, let say we have about 10000 polygon and each polygon consist of 10 point(3D point). If we use glLoadName() to assign an id to each polygon, when we select all the object, the hits record will store 10000 hits, and i use this method to check which polygons are in the selected area.
m_object// my list to store all the object
m_selection// list to store selected object
// draw object
CDrawObj *pObj= m_object.GetNext(pos);
glSelectBuffer (BUF_SIZE, buffer);
POSITION pos= m_object.GetHeadPosition();
// if buffer record equal to object id
i find that this method is slow when the number of object is increace. Does anyone know the better way to perform selection.