Original Post
Hi. I'm trying to deindex triangles read from a file. My current implementation uses a map to associate each vertex with an index. So say the vertices are made of position,normal and texture coordinates a vertex key would be a triplet. The current key used in the map is a string but it is painfully slow. I thought about using a number but using 32 bit is not enough to uniquely identify each vertex when there are 3 components. Thanks.