   OpenGL Selection
  Im developing a 3D Modeller and so far it seems to be going fine, however now im stuck on selection, where i draw a rectangle (which ive done), but i need it to select everything underneath the rectangle.How do I do this, would OpenGL selection technique work...glMode(GL_SELECTION)...glSelectionBuffer(), gluPickMatrix()...or i suppose I could try searching the data structures for each of the vertices and check if they are inside inside the rectangle, sounds harder though.Please help, maybe theres a shorter way someone knows of,Thanks in advance,Keith 
  Do you want to select objects, or vertices/faces/edges ?If you want to select vertices I think you have to search in your data structure and check if the vertex is in  your selection....like you allready said ;  Yeah im gonna be selecting vertices and faces,so as you said, then its best to go through the data structures...It sounds as if the OpenGL selection technique is only for selection and identification of entire objectsThanks,Keith ;quote:Original post by khalligan  Yeah im gonna be selecting vertices and faces,so as you said, then its best to go through the data structures...It sounds as if the OpenGL selection technique is only for selection and identification of entire objectsThanks,Keith   Nope.   