From 2b875a2db865d9bf0173f11a42a36c2985a3853f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 21 Nov 2022 13:08:12 +0100 Subject: [PATCH] MeshTools: add some minimal docs to RemoveDuplicates MeshData test data. Took me a while to figure out what's going on. --- src/Magnum/MeshTools/Test/RemoveDuplicatesTest.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Magnum/MeshTools/Test/RemoveDuplicatesTest.cpp b/src/Magnum/MeshTools/Test/RemoveDuplicatesTest.cpp index 7aab3d6bd..90b9a1669 100644 --- a/src/Magnum/MeshTools/Test/RemoveDuplicatesTest.cpp +++ b/src/Magnum/MeshTools/Test/RemoveDuplicatesTest.cpp @@ -99,6 +99,11 @@ const struct { const struct { const char* name; + /* The attributes are expected to be offsets into the `floats` array in the + test, which consists of 10 times 6 floats, so count should be always 10 + and size be always 6*sizeof(Float). And all six floats in the array need + to be covered by some attribute as the output stride is expected to be + the same. */ Containers::Array attributes; Float offset, scale, epsilon; UnsignedInt vertexCount;