diff --git a/src/Magnum/MeshTools/Duplicate.h b/src/Magnum/MeshTools/Duplicate.h index 8cf5c1ebd..4d67ab583 100644 --- a/src/Magnum/MeshTools/Duplicate.h +++ b/src/Magnum/MeshTools/Duplicate.h @@ -26,7 +26,7 @@ */ /** @file - * @brief Function Magnum::MeshTools::duplicate() + * @brief Function @ref Magnum::MeshTools::duplicate() */ #include @@ -36,18 +36,18 @@ namespace Magnum { namespace MeshTools { /** -@brief Duplicate vertices using index array +@brief Duplicate data using index array -Converts indexed array to non-indexed, for example vertices `{a, b, c, d}` with +Converts indexed array to non-indexed, for example data `{a, b, c, d}` with index array `{1, 1, 0, 3, 2, 2}` will be converted to `{b, b, a, d, c, c}`. -@see removeDuplicates() +@see @ref removeDuplicates(), @ref combineIndexedArrays() */ -template std::vector duplicate(const std::vector& indices, const std::vector& vertices) { +template std::vector duplicate(const std::vector& indices, const std::vector& data) { std::vector out; out.reserve(indices.size()); for(const UnsignedInt index: indices) - out.push_back(vertices[index]); - return std::move(out); + out.push_back(data[index]); + return out; } }}