What's the best way to store a triangle mesh?

I’m a real newbie to 3D programming, but I was just wondering, what’s the best way to store a triangle mesh? ie, linear array of triangles, or does the bottom triangle of each square go to next element?

Also, what method do I use to find out which triangles have vertices that touch a given coordinate?

Note that I do not really care about the Z value of the vertices. For now I’m just worrying about the X and Y values :slight_smile: