@BravoWA
2015-09-12T12:15:49.000000Z
字数 275
阅读 1071
C++
template <typename t>
std::vector<std::vector<t> > GetUniqueRows(std::vector<std::vector<t> > input)
{
std::sort(input.begin(), input.end());
input.erase(std::unique(input.begin(), input.end()), input.end());
return input;
}
Works great for find unique edges, faces in a mesh.