diff --git a/src/MeshTools/CombineIndexedArrays.h b/src/MeshTools/CombineIndexedArrays.h index 612e8fce3..6f4f8f699 100644 --- a/src/MeshTools/CombineIndexedArrays.h +++ b/src/MeshTools/CombineIndexedArrays.h @@ -106,18 +106,18 @@ of some STL functions like shown below. Also if one index array is shader by more than one attribute array, just pass the index array more times. Example: @code std::vector vertexIndices; -std::vector vertices; +std::vector positions; std::vector normalTextureIndices; std::vector normals; std::vector textureCoordinates; std::vector indices = MeshTools::combineIndexedArrays( - std::make_tuple(std::cref(vertexIndices), std::ref(vertices)), + std::make_tuple(std::cref(vertexIndices), std::ref(positions)), std::make_tuple(std::cref(normalTextureIndices), std::ref(normals)), std::make_tuple(std::cref(normalTextureIndices), std::ref(textureCoordinates)) ); @endcode -`vertices`, `normals` and `textureCoordinates` will then contain combined +`positions`, `normals` and `textureCoordinates` will then contain combined attributes indexed with `indices`. @attention All index arrays should have the same size, otherwise zero-length