diff --git a/src/Magnum/MeshTools/Duplicate.h b/src/Magnum/MeshTools/Duplicate.h index 78427fee2..1e05c191d 100644 --- a/src/Magnum/MeshTools/Duplicate.h +++ b/src/Magnum/MeshTools/Duplicate.h @@ -46,6 +46,7 @@ template void duplicateInto(const Containers::StridedA /** @brief Duplicate data using given index array +@m_since{2019,10} 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}`. diff --git a/src/Magnum/MeshTools/GenerateNormals.h b/src/Magnum/MeshTools/GenerateNormals.h index b515d4f95..026ddabdc 100644 --- a/src/Magnum/MeshTools/GenerateNormals.h +++ b/src/Magnum/MeshTools/GenerateNormals.h @@ -43,6 +43,7 @@ namespace Magnum { namespace MeshTools { @brief Generate flat normals @param positions Triangle vertex positions @return Per-vertex normals +@m_since{2019,10} All vertices in each triangle face get the same normal vector. Expects that the position count is divisible by 3. If you need to generate flat normals for an @@ -130,6 +131,7 @@ extern template MAGNUM_MESHTOOLS_EXPORT Containers::Array generateSmoot @param[in] indices Triangle face indices @param[in] positions Triangle vertex positions @param[out] normals Where to put the generated normals +@m_since{2019,10} A variant of @ref generateSmoothNormals() that fills existing memory instead of allocating a new array. The @p normals array is expected to have the same size