   Mesh using vertex array and indexed vertex array
  I have to use construct a mesh class that can use both faces that uses indecies to a vertex array and faces that are described without indecies (brute force). The problem is that I need to access the faces alot in software and I want to use the same code for both cases. Any ideas? I use C++ and a solution that adds about equally amount of overhead is accepted but it shouldn''t use alot of extra memory. 