Original Post
hi, i have an huge array with triangles. every triangle contains 3 vertices. now i don't want to store every vertex for every triangle. e.g. when i have a square i only need 4 vertices. in my array i have 6 vertices - so i want to find these two vertices which both triangles use together and just save a reference to the vertices. so i have something like this: triangle one: 1, 4, 5 triangle two: 1, 4, 3 and i want something like this: vertices: 1, 4, 5, 3 triangle one: vertices[0], vertices[1], vertices[2] triangle two: vertices[0], vertices[1], vertices[3] has anyone an algorithm to create the vertices array and then get the positions in it for the triangle references? hope that someone out there can help me out of this