|
|
|
|
@ -66,8 +66,10 @@ template<class Vertex, size_t vertexSize = Vertex::Size> class Clean {
|
|
|
|
|
and index of vertex in the face. */ |
|
|
|
|
std::unordered_map<Math::Vector<vertexSize, size_t>, HashedVertex, IndexHash> table; |
|
|
|
|
|
|
|
|
|
#ifndef MAGNUM_GCC44_COMPATIBILITY |
|
|
|
|
/* Reserve space for all vertices */ |
|
|
|
|
table.reserve(vertices.size()); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
/* Go through all faces' vertices */ |
|
|
|
|
for(auto it = indices.begin(); it != indices.end(); ++it) { |
|
|
|
|
|