Magnum/MeshTools/Duplicate.h file

Function Magnum::MeshTools::duplicate(), Magnum::MeshTools::duplicateInto()

Contents

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::MeshTools
Mesh tools.

Functions

template<class IndexType, class T>
auto duplicate(const Containers::StridedArrayView1D<const IndexType>& indices, const Containers::StridedArrayView1D<const T>& data) -> Containers::Array<T>
Duplicate data using given index array.
template<class IndexType, class T>
void duplicateInto(const Containers::StridedArrayView1D<const IndexType>& indices, const Containers::StridedArrayView1D<const T>& data, const Containers::StridedArrayView1D<T>& out)
Duplicate data using an index array into given output array.
template<class T>
auto duplicate(const std::vector<UnsignedInt>& indices, const std::vector<T>& data) -> std::vector<T>
Duplicate data using given index array.